Saturday, 10 December 2011

HTML event occur when focus of control loses

Hi Friends now I am discuss about onblur event in HTML.Onblur event is triggered
when selection of a control like text box or button loses
.Onblur can used to call a javascript function which do a specific task such as validation/case change.

I am here including a sample program.

<script type="text/javascript">
function Casechange()
var name=document.getElementById("txtname").value

Enter your name: <input type="text" id="txtname" onblur="Casechange()">


This program will convert the name entered in the name text box into upper case.
Hope that this post is usefull to you.
Thanks By Sukesh

No comments:

Post a Comment

Search This Blog