[thelist] javascript input field focus/blur

DESCHAMPS Stéphane DvSI/SICoR stephane.deschamps at francetelecom.com
Mon Apr 22 09:16:01 CDT 2002


Hello all,

I have a problem with some JS in NN4.5 (yeah, yeah, I know, but hey, it's an
intranet configuration).

Below is a JS function that is called onfocus="testBon()".

My problem is that if you click on "Cancel" the confirm popup displays
TWICE...
I can't seem to find what's wrong.

Er... Help? someone?

TIA
stef

<!-- begin -->
function testBon()
{
	myField = document.formName.formField;
	if(myField.value != "")
	{
        if (confirm('Do you want to modifiy this value?'))
	    {
			myField.value = '';
	    }
		else
		{
			myField.blur();
		}
	}
}
<!-- end -->




More information about the thelist mailing list