tallberg Posted April 14, 2007 Share Posted April 14, 2007 Hi How do i make the curser start flashing in the first feild of a form when the page loads? Thanks Link to comment https://forums.phpfreaks.com/topic/47037-solved-form-stuff/ Share on other sites More sharing options...
paul2463 Posted April 14, 2007 Share Posted April 14, 2007 by using the focus() command <BODY BGCOLOR="ffffff" onLoad="document.formname.textboxname.focus()"> Link to comment https://forums.phpfreaks.com/topic/47037-solved-form-stuff/#findComment-229382 Share on other sites More sharing options...
tallberg Posted April 15, 2007 Author Share Posted April 15, 2007 Afraid that didnt work. Link to comment https://forums.phpfreaks.com/topic/47037-solved-form-stuff/#findComment-229670 Share on other sites More sharing options...
paul2463 Posted April 15, 2007 Share Posted April 15, 2007 might sound a silly question but you did use your own formname and textboxnames in the command didnt you? Link to comment https://forums.phpfreaks.com/topic/47037-solved-form-stuff/#findComment-229739 Share on other sites More sharing options...
tallberg Posted April 15, 2007 Author Share Posted April 15, 2007 I did. Link to comment https://forums.phpfreaks.com/topic/47037-solved-form-stuff/#findComment-229740 Share on other sites More sharing options...
nogray Posted April 16, 2007 Share Posted April 16, 2007 let's say your input field id is "name" <input type="text" id="name" ... use this <body onload="document.getElementById('name').focus();"... make sure the field is not hidden by CSS. Link to comment https://forums.phpfreaks.com/topic/47037-solved-form-stuff/#findComment-230747 Share on other sites More sharing options...
tallberg Posted April 17, 2007 Author Share Posted April 17, 2007 Thank you. that worked Link to comment https://forums.phpfreaks.com/topic/47037-solved-form-stuff/#findComment-231188 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.