Welcome to WebmasterWorld Guest from 126.96.36.199 , register , free tools , login , search , subscribe , help , library , announcements , recent posts , open posts Subscribe to WebmasterWorld
A form input focusing issue If what I'm going to ask is even possible... Golden_Sin msg:4362065 6:48 pm on Sep 13, 2011 (gmt 0) I've been wondering whether it is possible to make a text input to be focused immediately when the page is opened. With focusing, without a better word to use, I mean that the text field is made writeable. Sorry for my unconsciousness about the right term. If you understood me and think this is possible, I would appreciate help.
Marshall msg:4362081 7:48 pm on Sep 13, 2011 (gmt 0)
Depending on your form and field names, add this in the page: <body onload="document.emailform.name.focus()"> Where "emailform" is, put your form name. Where "name" is, put the name of the field you want to focus. Marshall Golden_Sin msg:4362355 12:47 pm on Sep 14, 2011 (gmt 0)
I tried it and it worked. Thank you. rocknbil msg:4362422 3:57 pm on Sep 14, 2011 (gmt 0)