Anchor 'target' Example : Anchor : HTML : JavaScript DHTML examples (example source code) Organized by topic

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



Anchor 'target' Example

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

    
<html>
<head>
<script language="JavaScript">
    document.getElementById("yourAnchor").target = "_blank";
</script>
</head>
<body>
<a id="yourAnchor" href="http://www.java2s.com">Java2s.com website</a>
</body>
</html>

    
      
      
Related examples in the same category
1.   A Document with Anchors
2.  Reading the Number of Anchors
3.  Properties of the Anchor Object
4.  Anchors array
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.