Link.href : a link : HTML Tags JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » HTML Tags » a link »

 

Link.href







The href property represents the whole URL for the link.












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







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo HTML Tags
» a link