How to focus same textBox by onBlur function using javaScript

It is easy to focus any element in html using javaScript by following code


But when we want to focus same element by onBlur function then it takes some extra query.


Now you can use javaScript code

function myFunction(text){
   if (""(text) == true){ 
   //here alphanemeric function is used for checking something. You can use your own code

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s