Click here to Skip to main content
15,921,694 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
<button class="newsletter-btn" type="submit" onclick='' >Submit</button>
this is the code for button and I want to add javascript code on onclick event.
I don't have knowledge of Javascript .
Please suggest solution.
Posted

1 solution

you can try like below
HTML
<a href="http://www.manning.com/crowther/HH5aCSS3_SampleCh-01.pdf" download="HTML 5 PDF">click me</a>

DEMO[^]
you can add some css to make that link look like button
check this DEMO[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900