PNLdev
Tutorial
Front-end
HTML
reference
CSS
reference
JavaScript
reference
En
English
فارسی
En
English
فارسی
Tutorial
Front-end
HTML
reference
CSS
reference
JavaScript
reference
Run
<!DOCTYPE html> <html> <body> <h1>Show a Push Button</h1> <p>The button below activates a JavaScript when it is clicked.</p> <form> <input type="button" value="Click me" onclick="msg()"> </form> <script> function msg() { alert("Button clicked"); } </script> </body> </html>