Multiple Commands

A

amerar

Hi,

Sorry if this is a double post. I posted this about 1 hour ago, and
it never appeared.

I have some javascript commands I want executed when a user clicks on
an href link. My code is below. The code works fine with the first
command, but when I add the second and third commands, nothing
happens.

However, if I remove the first command, everything works fine. But I
need all three statements. Can anyone see the error in my ways?

Thanks!

<a href=\"javascript:emailvalidation('$email','The E-mail address is
not valid');document.OptOut.action = 'activate.php?type=2&db=$db&ref=
$ref&acronym=$acronym';document.OptOut.submit();\">Click Here</a>
 
T

The Natural Philosopher

Hi,

Sorry if this is a double post. I posted this about 1 hour ago, and
it never appeared.

I have some javascript commands I want executed when a user clicks on
an href link. My code is below. The code works fine with the first
command, but when I add the second and third commands, nothing
happens.

However, if I remove the first command, everything works fine. But I
need all three statements. Can anyone see the error in my ways?

Thanks!

<a href=\"javascript:emailvalidation('$email','The E-mail address is
not valid');document.OptOut.action = 'activate.php?type=2&db=$db&ref=
$ref&acronym=$acronym';document.OptOut.submit();\">Click Here</a>
I am no expert, but surely once you call another window you have passed
control away and that is the end of javascript in that window, Jim.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top