View Full Version : onfocusout for netscape 6?

10-15-2002, 10:48 PM
i am using this to make the border go dashed when the focus is on the field. it works fine for IE6 but with NS6 it doesnt lose the dashed border when you leave focus. anyone know what i need to change?

<input type="text" onfocus="this.style.borderStyle='dashed'" onfocusout="this.style.borderStyle='solid'">

cheers, paul

10-15-2002, 11:37 PM
What the **** is onfocusout??I have never heard of such a thing,if you want to make an eventhandler for when the focus changes then use onblur=""

10-16-2002, 12:09 AM
oh yeah, i forgot about onblur! i couldnt think what i needed to use so i guessed a few and onfocusout works (i think i remember seeing it on MSDN a while ago). i think it only works with new IE browsers though.

10-16-2002, 12:41 AM
onfocusout *New!*