Tanoru Posted March 4, 2010 Share Posted March 4, 2010 Hi, I want my input to automatically have the cursor flashing inside of it when the page is loaded up, exactly like Google. Does anyone know how to do this? Thanks in advance. Link to comment Share on other sites More sharing options...
0 Tanoru Posted March 4, 2010 Author Share Posted March 4, 2010 Found a solution, <body onload="document.(formname).(input name).focus();"> works perfectly. Link to comment Share on other sites More sharing options...
0 Ryoken Posted March 4, 2010 Share Posted March 4, 2010 This is likely the easiest way - http://ilovethecode.com/Javascript/Javascript-Tutorials-How_To-Easy/Javascript_Focus_Form_Field.shtml *edit* Wow just a few seconds too slow lol Link to comment Share on other sites More sharing options...
0 Tanoru Posted March 4, 2010 Author Share Posted March 4, 2010 Unlucky haha, thanks for the help anyhow. : D Link to comment Share on other sites More sharing options...
Question
Tanoru
Hi, I want my input to automatically have the cursor flashing inside of it when the page is loaded up, exactly like Google. Does anyone know how to do this?
Thanks in advance.
Link to comment
Share on other sites
3 answers to this question
Recommended Posts