dcsimg
focus() problem in IE
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Banda_Raghuram
Posted On:   Wednesday, March 17, 2004 11:24 PM

With the following code, desired functionality is working fine in OPera 7, NEtscape 7.1, and Mozilla 1.4 and not IE 6.



inputElement = document.getElementsByTagName("input");


inputElement[0].focus();



I want to focus the first input element when the page was loaded and from there pressing TAB key should traverse thru the rest of the page. But in IE 6, I'm able to focus the first input element but pressing tab is placing the control back to "Address" location of the browser.


Can anyone give the solution for this.

Thanks in adavance

Re: focus() problem in IE

Posted By:   Firat_Tiryaki  
Posted On:   Monday, March 22, 2004 03:55 AM

use document.formName.elements[index];... index is an integer here.
About | Sitemap | Contact