Mega Code Archive

 
Categories / JavaScript DHTML / HTML
 

Anchors array

<html> <body> <script type="text/javascript"> function linkToAnchor(num){     var win2=open("http://www.rntsoft.com","secondLinkWindow",                     "scrollbars=yes,width=250,height=200")     win2.location.hash=num } </script> <h3>Links and Anchors</h3> <form> <input type="button" value="0" onClick="linkToAnchor(this.value)"> <input type="button" value="1" onClick="linkToAnchor(this.value)"> <input type="button" value="2" onClick="linkToAnchor(this.value)"> <input type="button" value="3" onClick="linkToAnchor(this.value)"> </form> </body> </html>