C
Colin Hale
I have a problem (amongst others)...
I have the following code which sends 2 emails. I only want to send
one!
<A
ONCLICK="OnActionClick('E-Mail')"
ID="EMailNowAnchor"
NAME="EMailNowAnchor"
HREF="javascript:OnActionClick('E-Mail');"
TABINDEX ="2"
CLASS="Button">
<IMG SRC="images/email.gif" ALT="Click Here" BORDER="0"
ALIGN="ABSMIDDLE">
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="javascript: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="OnActionClick('E-Mail')"
ID="EMailNowAnchor"
NAME="EMailNowAnchor"
HREF="javascript:OnActionClick('E-Mail');"
TABINDEX ="2"
CLASS="Button">
<IMG SRC="images/email.gif" ALT="Click Here" BORDER="0"
ALIGN="ABSMIDDLE">
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="javascript: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?