View Full Version : Using a Button to link to a function

07-13-2012, 04:55 PM
So I have a javascript contact form that slides onto my site. I want to put buttons elsewhere that make it come out.

My javascript is:

$(function (){
recipient: 'pwomack@seitzservice.com',
subject: 'A Message from stylecrafthomesofrichmond.com'

And right now, I have the button code as....

<button type="button" onclick="function()">CLICK HERE</button>

I don't really know what to put for the onclick function.

Any help? Need any more info?

07-13-2012, 06:45 PM
Instead of an anonymous function, give the function a name, like contactMe().

If you need it to slide out when the page loads, then use body onload="contactMe()"