it focus that text field,mean the cursor'll move to text field having the name="uname" | 0 |
By: [email protected] On: Wed May 22 02:24:40 EDT 2013 0 147 0 | 147 |
Are You Satisfied :1Yes1No |
Focus will keep object to ready for work. If you loose focus from object you cannot do work on that object. We can work on only active object. To activate object we need focus on that. JavaScript focus function solves our problem. Focus on text field keeps the cursor inside text field and we can start writing in the field. If we want to select text and copy text, focus should be on that window. Window can be focused by focus function. The focus() method is used to set the focus to a text field. so you are doing same here | 2 |
By: [email protected] On: Wed May 22 02:39:48 EDT 2013 0 392 0 | 392 |
Are You Satisfied :1Yes1No |