Click to See Complete Forum and Search --> : another button question.


WinterHayley04
11-05-2003, 04:16 PM
I am doing buttons for my site and I have the script for the back, forward and home button but I am unsure about a mail button. This is the script that I have so far:


<center>
<form>
<a href="#" onclick="history.back(1);"><img src="http://winterhayley04.tripod.com/indigoback.jpg"align=center style="border: 0px;" alt=""><a href="http://www.twistedsnowangel.com/"><img src="http://winterhayley04.tripod.com/indigohome.jpg"align=center style="border: 0px;" alt=""><a href="http://www.twistedsnowangel.com/myworld/id16.html"><img src="http://winterhayley04.tripod.com/indigonext.jpg"align=center style="border: 0px;" alt=""/></a>
</form>
</center>

For the mail button would I put: mailto:and the e-mail address where I would put the URL? If not what would I put?
Any help would be great!! Thank you!

AdamBrill
11-05-2003, 04:20 PM
<input type="button" onclick="document.location='mailto:me@wherever.com';" value = "Mail me a letter!">

NOTE: This won't work for non-JS users. It would be best to use a link, so it works for everyone.

WinterHayley04
11-05-2003, 04:27 PM
Thank you Adam!
But I am new to this and this is the first site that I have ever created...
What kind of a link will work for everyone? I am lost here...I think I fried all my brain cells getting those other buttons done lol

AdamBrill
11-05-2003, 04:34 PM
This would be better:

<a href="mailto:me@wherever.com">E-mail Me!</a>

WinterHayley04
11-05-2003, 04:41 PM
Thank you so very much Adam!

AdamBrill
11-05-2003, 04:47 PM
No problem. ;)