+ 1
How can i give a function to a button in HTML5?
I want to make a button for the user to click and access another page.
5 ответов
+ 1
"onclick" will help you )
+ 1
or simply add link in to button in HTML
+ 1
Could you please show me the sintax for doing this?
0
<a href = "http://google.com"><button title="link" value="link">button</button></a>
0
<button onclick="myFunction()">Click me</button> if you do this with JS. But in this case you must declarate function. In HTML much easier.