Hi Vishal,
Just curious about one thing:
Whenever I say >>>onClick="return myFunction()"<<<
NS 4.0 understands what I mean. If the function returns false, it stops any
further action.
When I say >>>onClick=myFunction()<<<
it calls myFunction, but ignores the return value.
Are you sure you tried the first version.
Again, when you say it does nothing, it might be calling the function, but
ignoring the return value and proceeding with following the href. You can
verify by putting an Alert inside the function.
Regards,
Aby
> -----Original Message-----
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, April 15, 1999 11:43 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [ND] help on javascript
>
>
> Hi,
> Thanks Brendan and Aby for the reply.
> It was'nt working when I started writing this post then I tried
> some thing and it worked. I notice two things-
> 1. My browsers (NA 4.5 and IE 4.0) does'nt like the notation-
> onClick =
> document.formName.elements[\"btCompany_onWebEvent(btCompany)\"].click();
> return false;
> It works when I write-
> onClick = document.formName.elements[4].click(); return false;
> It does'nt seem to recognize \".
>
> 2. If I put the working code in a function and call the function
> it does nothing. Wierd!
>
> Any way atleast I have some thing working, thanks to you guys.
>
> Vishal
>
>
>
_________________________________________________________________________
For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
For dire need help, email: [EMAIL PROTECTED]