Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <!-- here I load my script externally -->
- </head>
- <body onload="validation()">
- <!-- some stuff -->
- <form method="get" id="form1" action="javascript:myscript.print()" novalidate>
- <!-- some fields here -->
- </form>
- </body>
- </html>
- ------------------------------------------------------------------------------------------------------------------------------------------
- function validation()
- {
- // all of the validation stuff goes here
- }
- function print()
- {
- // prints out the data sent in the form
- }
Advertisement
Add Comment
Please, Sign In to add comment