Forum Moderators: open

Message Too Old, No Replies

Contagious onBlur

(from <body> to <a>)

         

Juanjo

3:03 pm on Feb 25, 2002 (gmt 0)

10+ Year Member



I have defined an onblur event in the body of a document, something like:

<body onBlur="doSomething();">

the body contains a form, and the form contains some text inputs and some anchors. Traversing of text inputs with the tab key works fine, but when I traverse an anchor "doSomething" gets executed!

Does anybody know a rational explanation of this behaviour? If this is some kind of navigator bug, does anybody know a workarround?
At the moment I have only tested with NS6.

Thanks

wardbekker

3:24 pm on Feb 25, 2002 (gmt 0)

10+ Year Member



Netscape sees an anchor as an new page. Onload is also called again. Internet Explorer on the Mac shows the same behavior, IE on PC not for some strange reason. Use a variable to check if the page is really reloaded before you execute the rest of the called method.