JavaScript returns the number of anchors in the web page

From , 4 Years ago, written in JavaScript, viewed 54 times.
URL https://pastebin.vip/view/e6872f5b
  1. <!DOCTYPE html>
  2. <html>
  3. <body>
  4.  
  5.  
  6. <a name="html">HTML Tutorial</a><br>
  7. <a name="css">CSS Tutorial</a><br>
  8. <a name="xml">XML Tutorial</a><br>
  9. <a href="http://www.sharejs.com/js/">JavaScript代码</a>
  10.  
  11. <p>Number of anchors:
  12. <script>
  13. document.write(document.anchors.length);
  14. </script></p>
  15.  
  16. </body>
  17. </html>
  18.  
  19. //javascript/7910

Reply to "JavaScript returns the number of anchors in the web page"

Here you can reply to the paste above

captcha

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