Link.target : a link : HTML Tags JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » HTML Tags » a link »

 

Link.target







The target property represents the name of the window in which the URL is to be displayed.












<html>
    <head>
    <title> Using the target property of the Link object</title>
    </head>
    <body>
    <script language="JavaScript">
    <!--
    function showtarget(){
         alert(document.links[0].target);
    }
    -->
    </script>
    Click the button to see the target of the URL
    <form name="form1">
    <a href=http://www.navioo.com>
    http://www.navioo.com</a>
    <input type="button" name="tar" value="Get Target" onClick='showtarget()'>
    <br>
    </form>
    </body>
    </html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo HTML Tags
» a link