Guest User

Untitled

a guest
Apr 6th, 2018
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <html>
  2. <head>
  3. <!-- here I load my script externally -->
  4. </head>
  5. <body onload="validation()">
  6. <!-- some stuff -->
  7.  
  8. <form method="get" id="form1" action="javascript:myscript.print()" novalidate>
  9. <!-- some fields here -->
  10. </form>
  11.  
  12. </body>
  13. </html>
  14.  
  15. ------------------------------------------------------------------------------------------------------------------------------------------
  16.  
  17. function validation()
  18. {
  19.     // all of the validation stuff goes here
  20. }
  21.  
  22. function print()
  23. {
  24.     // prints out the data sent in the form
  25. }
Advertisement
Add Comment
Please, Sign In to add comment