Code to execute loses focus element

Vivek.Ramapuram
Posted by Vivek.Ramapuram under CSS 3 category on | Points: 40 | Views : 504
Enter your name: <input type="text" name="txtName1" id="txtName1" onblur="CallFunction(this.id)" />
<input type="button" id="btn1" name="btn1" value="Submit" />
<script type="text/javascript">
function CallFunction(id) {
document.getElementById(id).style.background = "yellow";
}
</script>

Comments or Responses

Login to post response