Event in Java Script(Focus Event)

 <html>  

<head> Javascript Events</head>  

<body>  

<h2> Enter something here</h2>  

<input type="text" id="input1" onfocus="focusevent()"/>  

<script>  

    function focusevent()  

    {  

        document.getElementById("input1").style.background=" aqua";  

    }  

</script>  

</body>  

</html>  


Comments

Popular posts from this blog

Important Questions for XII

Sample Question Bank Grade 12

Question Collection-11