Page 1 of 1

window.focus() in mozilla ...

Posted: Mon Sep 08, 2003 9:07 am
by zick
is there an equivalent to window.focus() in mozilla? for those who are unfamilliar, it's supposed to focus the main window. i use it for when i make drop down or tree menues so that you don't have that little dotted line box surrounding the link after it's clicked. i'm aware of the accessibility issues of this, so please don't remind me of that. i know that little box thingy is great for some people with special needs (i'm so PC), but i think it looks ugly. thanks for any help that anyone can provide.

Posted: Mon Sep 08, 2003 9:20 am
by JAM
According to ref's, it should work, so i'm speechless.
http://www.mozilla.org/docs/dom/domref/ ... ref20.html

You dont happen to have something bad in the code? IE has an special 'feature' to display code with errors, just like if it was allright... Mozilla on the other hand perhaps breaks that same piece as it's not valid.
You might not be a bad coder, but perhaps worth looking into.

Posted: Tue Sep 09, 2003 9:22 am
by Vincent Puglia
As Jam says, 'window.focus()' is crossBrowser. Perhaps some code is in order here.

Vinny