Table of contents Home page
Execute this code
var w = window.open("blank.html", "blank", "height=50,width=600") w.document.write('<a name="anchor1">Anchor 1</a></br>') w.document.write('<a name="anchor2">Anchor 2</a></br>') w.alert("Number of anchors: " + w.document.anchors.length) w.close()