Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version = "1.0" encoding = "utf-8"?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- <html xmlns = "http://www.w3.org/1999/xhtml">
- <head>
- <title> Sample </title>
- <script type = "text/javascript">
- function meBeenPushed()
- {
- alert("I have been pushed");
- }
- </script>
- <body>
- <form name = "myForm" action = "">
- <input type = "button" value = "pushMe" name = "pushMe" />
- </form>
- <script type="text/javascript">
- document.myForm.pushMe.onclick=meBeenPushed;
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement