I have a problem (amongst others)...
I have the following code which sends 2 emails. I only want to send
one!
<A
ONCLICK="OnActi onClick('E-Mail')"
ID="EMailNowAnc hor"
NAME="EMailNowA nchor"
HREF="javascrip t:OnActionClick ('E-Mail');"
TABINDEX ="2"
CLASS="Button">
<IMG SRC="images/email.gif" ALT="Click Here" BORDER="0"
ALIGN="ABSMIDDL E">
E-Mail Now</A>
The trouble is that both the HREF and the OnClick are triggered and 2
mails are send instead of just 1.
I've tried replacing my HREF line with
HREF="javascrip t:OnActionClick ('E-Mail');return FALSE"
but this just gives an error 'return statement outside of function'.
I thought you could prevent event propogation/bubbling with return
false?
Any ideas?
I have the following code which sends 2 emails. I only want to send
one!
<A
ONCLICK="OnActi onClick('E-Mail')"
ID="EMailNowAnc hor"
NAME="EMailNowA nchor"
HREF="javascrip t:OnActionClick ('E-Mail');"
TABINDEX ="2"
CLASS="Button">
<IMG SRC="images/email.gif" ALT="Click Here" BORDER="0"
ALIGN="ABSMIDDL E">
E-Mail Now</A>
The trouble is that both the HREF and the OnClick are triggered and 2
mails are send instead of just 1.
I've tried replacing my HREF line with
HREF="javascrip t:OnActionClick ('E-Mail');return FALSE"
but this just gives an error 'return statement outside of function'.
I thought you could prevent event propogation/bubbling with return
false?
Any ideas?
Comment