View Full Version : submit vs button

10-15-2005, 08:42 PM
i am using this script, http://www.dynamicdrive.com/dynamicindex9/password.htm, and i wanted to change the button that is for submitting from a type="button" to a type="submit" so that you dont have to click on the button, and you can just hit enter. when i change this however, it messes it up by making it so that after you submit the right username/password, it refreshes the page instead of going to the new one. i think it is because there is a onClick="submitentry()" , but i dont know. so any help would be appreciated. thank you

10-15-2005, 10:13 PM
another thing is that this is in a pop up window that has no menus or anything. is it possible to make it that when you submit it, the page maximizes, and gets all the toolbars and stuff back

10-15-2005, 11:15 PM
To use a submit button instead of the regular button, try removing:

<input type="button" value="Submit" onClick="submitentry()">

and replacing that with:

<input type="submit" value="Submit" onClick="submitentry(); return false">

There's no way to change a toolbarless window into toolbars however.

10-15-2005, 11:21 PM
is there a way that it sorta closes the current window, and opens up a new one?