U
usenet
Hi all,
I have a page that contains a search form with a single text input
field. The form is located on the lower portion of the page, well
beyond the fold/jump/etc. and its position is out of my control. When
the page loads, I would like to have the input focus set to that text
field, so that savvy users can immediately type their query and hit
Enter to post the search, without having to scroll down and click into
the field first.
So far, my attempts at implementing this have resulted in the browser
automatically jumping to the location of the text field when the page
loads. I'm calling document.myForm.myField.focus() in the <body
onLoad=""> attribute. Is there another way to set the focus to a form
field without having the browser automatically jump to that input?
TIA
I have a page that contains a search form with a single text input
field. The form is located on the lower portion of the page, well
beyond the fold/jump/etc. and its position is out of my control. When
the page loads, I would like to have the input focus set to that text
field, so that savvy users can immediately type their query and hit
Enter to post the search, without having to scroll down and click into
the field first.
So far, my attempts at implementing this have resulted in the browser
automatically jumping to the location of the text field when the page
loads. I'm calling document.myForm.myField.focus() in the <body
onLoad=""> attribute. Is there another way to set the focus to a form
field without having the browser automatically jump to that input?
TIA