Link focus() and blur() : Hyper Link : HTML JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » HTML » Hyper Link »

 

Link focus() and blur()



<html>

<head>
<style type="text/css">
    a:active {color:blue}
</style>
<script type="text/javascript">
function getfocus(){
    document.getElementById('java2s').focus()
}

function losefocus(){
    document.getElementById('java2s').blur()
}
</script>
</head>

<body>
    <a id="navioo" href="http://www.navioo.com">Visit navioo.com</a>
    <form>
        <input type="button" onclick="getfocus()" value="Get Focus">
        <input type="button" onclick="losefocus()" value="Lose Focus">
    </form>
</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