Advertisement
Guest User

Untitled

a guest
Dec 8th, 2012
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.36 KB | None | 0 0
  1. <html>
  2. <head>
  3.     <script>
  4.          function formSubmit(form) {
  5.             window.location.href = '/invoices/' + form.userinput.value;
  6.             return false;
  7.          }
  8.     </script>
  9.     <title>test</title>
  10. </head>
  11.  
  12. <body>
  13.     <form name="goto" action="test.html" onSubmit="return formSubmit(this);">
  14.         <input name="userinput" type="text">
  15.         <input type="submit" value="try me">
  16.     </form>
  17. </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement