Click to See Complete Forum and Search --> : e-mail button


vicgui
06-03-2009, 08:29 AM
I'm trying to create an e-mail button to place on my test page as is in my book. I tried and nothing happens even though I followed it to a T. I am using the onClick attribute with the location.href property. Here is the full code:

<button onClick="location.href='mailto:vpg@yahoo.com?subject=Address Change'">Send an Address Change</button>

If anyone know why this doesn't work, Please correct me.

cbVision
06-03-2009, 05:45 PM
Why make it a button?

<a href="mailto:vpg@yahoo.com?subject=AddressChange">Send an address change</a>