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 . Quote 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. Quote 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() Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/137671-solved-cusor-position/#findComment-719720 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.