Link 'hreflang' Example : Hyper Link : HTML JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » HTML » Hyper Link »

 

Link 'hreflang' Example



    
<html>
<head>
<base id="myBase">
<script language="JavaScript">
    function function1() {
        document.all.myBase.href= "http://www.navioo.com";
    }
</script>
</head>
<body>

<a id="myAnchor" href="/index.htm" hreflang="en">www.navioo.com site</a> 
<br><br>
<button onclick="function1();">Change the base URL</button>
<button onclick="alert(myAnchor.href);">Anchor</button>
<button onclick="alert(location.href);">Location</button>
<button onclick="alert(document.styleSheets(0).href);">style sheet</button>
<button onclick="alert(myAnchor.hreflang);">Language</button>
</body></html>

    
      
      



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo HTML
» Hyper Link