Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:16
focus on page load
Poster: rabbit
Dated: Wednesday January 25 2006 - 2:21:28 GMT
I have a menu that contains:
aI("type=html;text=<input type=text tabIndex=1 id=PartNumber accesskey=p/>;");
also tried text and form types.
I would like to have the textbox have focus when the page loads but the tabindex does not seem to be honored (ie6) and calling document.all.PartNumber.focus in the documents onreadystatechange when document.readyState=="complete" fails because the element has not been created yet.
I did try setting the focus using a window.setTimeout(....) which also seemed to fail.
Any ideas oh dhtml menu gods
Thanks in advance,
JB