Tryit Editor v1.4

<html> <head> <script type="text/javascript"> function linkTo(y) { var x=window.open("anchors.htm","","scrollbars=yes,width=250,height=200"); x.location.hash=y; } </script> </head> <body> <h3>Links and Anchors</h3> <p>Click on a button to display that anchor in a second window!</p> <input type="button" value="0" onclick="linkTo(0)"> <input type="button" value="1" onclick="linkTo(1)"> <input type="button" value="2" onclick="linkTo(2)"> <input type="button" value="3" onclick="linkTo(3)"> </body> </html> | Your Result:
Edit the code above and click to see the result. | W3Schools.com - Try it yourself