| Welcome to WebmasterWorld Guest from 126.96.36.199 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
|Opening a page in the same window with a form submit|
window.open, _self, submit
Is there a way I can open a page in the current window when I do a form submit?
Here is my code.
<form name="airForm" id="airForm" onsubmit=fun()>
<input type="submit" value="Submit">
It works fine if I change the 'submit' to a 'button'.
<form name="airForm" id="airForm" >
<input type="button" value="Submit" onClick=fun()>
Thanks for any help.
[edited by: Gopinath at 11:04 am (utc) on Feb. 17, 2009]
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved