jkkenzie Posted December 19, 2008 Share Posted December 19, 2008 Is it posible in php to change the cursor position/location to a certain field input? say i want when page loads my cursor should be in a certain input box . Link to comment https://forums.phpfreaks.com/topic/137671-solved-cusor-position/ Share on other sites More sharing options...
blueman378 Posted December 19, 2008 Share Posted December 19, 2008 not with php, thats a javascript trick. Link to comment https://forums.phpfreaks.com/topic/137671-solved-cusor-position/#findComment-719512 Share on other sites More sharing options...
JonnoTheDev Posted December 19, 2008 Share Posted December 19, 2008 javascript onFocus() Link to comment https://forums.phpfreaks.com/topic/137671-solved-cusor-position/#findComment-719718 Share on other sites More sharing options...
premiso Posted December 19, 2008 Share Posted December 19, 2008 Javascript. <body onload="document.getElementById('yourfieldidhere').focus();"> I believe that would do it. Link to comment https://forums.phpfreaks.com/topic/137671-solved-cusor-position/#findComment-719720 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.