HTML CSS examples for HTML Tag:input
A clickable button, that activates a JavaScript when it is clicked:
<!DOCTYPE html> <html> <body> <form> <input type="button" value="Click me" onclick="msg()"> </form><!-- w w w . j a v a2 s. com--> <p>The button above activates a JavaScript when it is clicked.</p> <script> function msg() { console.log("Hello world!"); } </script> </body> </html>