JS code returns the name attribute (name) of iframe

From , 5 Years ago, written in JavaScript, viewed 125 times.
URL https://pastebin.vip/view/5bd529d5
  1. <!DOCTYPE html>
  2. <html>
  3. <body>
  4.  
  5. <iframe id="myframe" src="/default.asp" name="myframe">
  6. <p>Your browser does not support iframes.</p>
  7. </iframe>
  8.  
  9. <p>The name of the iframe is:
  10. <script>
  11. document.write(document.getElementById("myframe").name);
  12. </script>
  13. <p>
  14.  
  15. </body>
  16. </html>
  17.  
  18. //javascript/7946

Reply to "JS code returns the name attribute (name) of iframe"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website