+ 2

How to make button with div?

21st May 2017, 3:00 PM
Roland Doctor
Roland Doctor - avatar
2 Answers
+ 11
Use the Following Code:- <!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <div><input type="submit"></input></div> </body> </html>
21st May 2017, 3:16 PM
Ekansh
+ 3
You can also assign an onClick event to the div to run a js function. <div onclick=yourFunction()>...</div>
21st May 2017, 4:37 PM
seamiki
seamiki - avatar