Anchors array : Anchor : HTML : JavaScript DHTML examples (example source code) Organized by topic

JavaScript DHTML
C++
PHP
JavaScript DHTML Home »  HTML   » [  Anchor  ]   
 



Anchors array

Please note that some example is only working under IE or Firefox.


<html>
<body>

<script type="text/javascript">
function linkToAnchor(num){
    var win2=open("http://www.java2s.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>


           
       
Related examples in the same category
1.  Anchor 'target' Example
2.   A Document with Anchors
3.  Reading the Number of Anchors
4.  Properties of the Anchor Object
5.  Return the number of anchors in a document
6.  List anchor in a document








Home| Contact Us
Copyright 2003 - 04 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.