SFL
03-09-2005, 04:46 PM
Hi all,
I'm new to client side coding so please be patient : )
If I register an onClick() handler as usual like this:
onClick="if (document.form0.loc.value == ''){alert('Message...');} doSomething();}"
if doSomething() errors out (due to invalid variable name etc.), what would be the return value or what would it be evaluated as?
From a piece of code I have tested in firefox and IE I get different behaviour. IE goes ahead with the default event handler while firefox halts all JS execution for that onClick event.
Is this normal? Does anyone know of a good resource for a comparison of IE and W3C compliant browsers?
Thanks for taking the time to read this!
/SFL
I'm new to client side coding so please be patient : )
If I register an onClick() handler as usual like this:
onClick="if (document.form0.loc.value == ''){alert('Message...');} doSomething();}"
if doSomething() errors out (due to invalid variable name etc.), what would be the return value or what would it be evaluated as?
From a piece of code I have tested in firefox and IE I get different behaviour. IE goes ahead with the default event handler while firefox halts all JS execution for that onClick event.
Is this normal? Does anyone know of a good resource for a comparison of IE and W3C compliant browsers?
Thanks for taking the time to read this!
/SFL