window.focus() in mozilla ...

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
zick
Forum Commoner
Posts: 33
Joined: Thu Aug 14, 2003 3:18 pm

window.focus() in mozilla ...

Post 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.
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post 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.
User avatar
Vincent Puglia
Forum Commoner
Posts: 67
Joined: Thu Sep 04, 2003 4:20 pm
Location: where the World once stood

Post by Vincent Puglia »

As Jam says, 'window.focus()' is crossBrowser. Perhaps some code is in order here.

Vinny
Post Reply