focus() without scrolling in IE

Is it possible to set focus to an object without scrolling to it?
I can see that only IE is doing this.
Whenever I call object.focus(), the screen automatically scrolls to the object.
I tried to save current scroll position and then restoring it back after focus() but I just do not want to see the scroll moving at all.
(actually, i do not mind it myself but the clients do. lol)
Is there a way to do this?
nagunpyoAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
LeeKowalkowskiConnect With a Mentor Commented:
Firefox 2 is also doing it for me on my test page.

I used .select() instead of .focus() and that seemed to do the trick in Firefox, but not Internet Explorer - oh well.

It seems futile anyway.  Most users will use the scrollbar to scroll which will lose focus anyway.  And automatically setting focus to a form field can throw screen readers off anyway (so I'm led to believe - http://groups.google.com/group/alt.www.webmaster/browse_thread/thread/37645d85d2267f3c/128a9868fc57e295?lnk=raot)

Having the first field of an important form below the fold is a usability issue you should be avoiding really.

Is it a form field though or some other object?

--
Lee
0
 
Michel PlungjanIT ExpertCommented:
Not that I know of.
What is the actual issue?
0
 
nagunpyoAuthor Commented:
Hi mplungjan~
I'm having this problem while resolving some of the x-browser/design mode/IME issues.
It is very hard to describe everything related to the issue in short but if there's a way to do this then the problem can be easily solved without worrying about any side effects.

And also, I just want to know if this is possible. :-)

Does anybody know for sure if there is a way to do this or not..?
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
Michel PlungjanIT ExpertCommented:
I just failed to see a situation where you do not want a field you cannot see become visible when it has the focus...
Sort of the point of the whole thing...
0
 
bfbowerConnect With a Mentor Commented:
eg. A signup form on a squeeze page with a lot of type preceding the form.  You want to make signing up as easy and fool proof as possible...
0
 
Michel PlungjanConnect With a Mentor IT ExpertCommented:
Well the answer is "Not that I know of"

But please do me a favour - if you decide to close the question, a "C" grade would not be appropriate since "no" is also an answer

Michel
0
All Courses

From novice to tech pro — start learning today.