Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta name="description" content="Basic JS Button Example">
- <meta charset="utf-8">
- <title>Javascript Button</title>
- </head>
- <body>
- <p>Please don't push that button...</p>
- <button onclick='myCoolFunction()'>Don't Click Me!</button>
- <script id="jsbin-javascript">
- function myCoolFunction(){
- alert("You Rascal! You clicked the Button!");
- }
- </script>
- <script id="jsbin-source-javascript" type="text/javascript">function myCoolFunction(){
- alert("You Rascal! You clicked the Button!");
- }</script></body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement