The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Hybrid View

focus() issue in IE

Hi everyone,

I am playing around trying to get a script to work.
This is what I want it to do.
When the first input box is clicked on it will display a hidden division with links in it and then focus on the first link in that division. The user can then tab through the links. When the last link has been tabbed off of it should hide the link division and then focus on the next input element. In Firefox this works perfectly fine. In I.E. it does not return the focus to the input. It ends up focusing on the browsers location bar.

P.S. I included all of the code being used. I don't believe the positioning code would cause a problem but I included it just in case. This is just a test, hence why some of the attributes are missing, to see if I can get the javascript working but any help would be appreciated.