[Javascript] Mozilla OnFocus Problem

Flavio Gomes flavio at economisa.com.br
Thu Dec 4 07:44:47 CST 2003


Setting a very high tabindex isnt exactly what you want, but works....
in IE you can set the tabindex to " -1 " and it'll never focus the object...

<a href="http://www.evermore.com/" tabindex="999" ><img
src="http://www.evermore.com/evermore/evericon.gif" alt="Test Image"
height="70" width="70" border="0" /></a>


PS.: "tabIndex" applies to the following tags:
    A, APPLET, AREA, BODY, BUTTON, DIV, EMBED, HR, IFRAME, IMG, INPUT, 
MARQUEE, OBJECT, SELECT, TABLE, TEXTAREA 

Andrew Crawford wrote:
> Greetings,
>
> (...)
> I am trying to use the onFocus event handler to skip several images with
> links that appear between fields on a form (field editing tools, for
> example) when tabbing between fields.  I have created a minimal page in
> which the error occurs.  The code is pasted below.  If it doesn't make it
> through the maillist software, it is temporarily up here:
>
>     http://www.evermore.com/temp/js_error.html
>
>  (...)
> Anybody know what the problem is or how to work around it?
>
> Andrew Crawford
> Javascript at Evermore.com
>

-- 
Flavio Gomes de Araujo Pego
Estagiário - Técnico em Informática
NUPRO - (31) 3274-1811 - Ramal 232



More information about the Javascript mailing list