<html> <head> <script> function sending() { document.all.myForm.action = 'yourpage.asp'; document.all.myForm.submit(); } </script> </head> <body> <form id="myForm"> Full Name: <input type="text" name="fullname" value=""> <button onclick="sending();">Submit</button> </form> </body> </html>