Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

input onclick events

Status
Not open for further replies.

rubychyld

Programmer
Mar 22, 2001
76
US
Hi,
This is most likely very easy...

Is this onclick mailto tag used correctly?
<input type=&quot;button&quot; name=&quot;Edit&quot; value=&quot;Edit&quot; class=&quot;anyButton&quot; onClick=&quot;mailto:marketing@libertyamerican.com&quot;>

Is this hyperlink in on this input tag used correctly?
<input type=&quot;button&quot; name=&quot;Edit&quot; value=&quot;Edit&quot; class=&quot;anyButton&quot; onClick=&quot;
Thanks, I browsed the forum but didn't see the answer. These are both giving me errors.

Liz Catch the vigorous horse of your mind!
 
Hello,
The second one needs to be changed to javascript:

<input type=&quot;button&quot; name=&quot;Edit&quot; value=&quot;Edit&quot; class=&quot;anyButton&quot; onClick=&quot;window.location='
And the first one really needs to have the mailto in a form. Try this:

<form action=&quot;mailto:marketing@libertyamerican.com&quot;>
<input type=&quot;submit&quot; name=&quot;Edit&quot; value=&quot;Edit&quot; class=&quot;anyButton&quot;>
</form>
 
Thanks! You're cool! Catch the vigorous horse of your mind!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top