Link to home
Start Free TrialLog in
Avatar of jmbaratta
jmbaratta

asked on

Javascript Quotation Syntax

Hello,

I am creating a form to submit information, and I have used various answers on this website to create the following tag:

<input onClick="this.form.action='LINKGOESHERE'" type="image" name="submit" value="submit" src="/images/button_submit.gif" alt="" width="65" height="20" hspace="0" vspace="0" border="0">

The problem that I run into is that I want to use a javascript pop-up window as the link, which causes a quotation mark crisis!

The link, javascript:popUp3('aboutus_picture1.asp'); causes a syntax error when it is inserted into the tag above...

<input onClick="this.form.action=javascript:popUp3('aboutus_picture1.asp'); '" type="image" name="submit" value="submit" src="/images/button_submit.gif" alt="" width="65" height="20" hspace="0" vspace="0" border="0">


Help please?  Thanks! J.M.
ASKER CERTIFIED SOLUTION
Avatar of Harisha M G
Harisha M G
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Here my version:

<form>
<input onClick="this.form.action='javascript:alert(\'aboutus_picture1.asp\');'" type="image" name="Submit" value="submit" src="/images/button_submit.gif" alt="" width="65" height="20" hspace="0" vspace="0" border="0">
</form>