I want to submit a form on a page that when the submit button is clicked, it will open up a new page with a specified size that the information is submitted to the new opened window.
and then on yourpage.php, use [URL=http://devedge.netscape.com/library/manuals/2000/javascript/1.3/reference/window.html#1203300]resizeTo[/URL] to resize the window.
@redbrad0authorOct 09.2003 — #Thanks pyro, but I guess I do not understand how resizeTo works and the page you linked me to didn't make it clear. Would doing this cause problems with browsers that block popups?
@VladdyOct 09.2003 — #[i]Originally posted by redbrad0 [/i]
[B]Thanks pyro, but I guess I do not understand how resizeTo works and the page you linked me to didn't make it clear. Would doing this cause problems with browsers that block popups? [/B][/QUOTE] Browsers that block popups also have an option to prevent javascripts that manipulate window size and location from doing so. Your best bet is to design so that your site stays within a window which size and position is determined by device and user preference.
I think some of the better pop up blockers will allow pop ups that you request, but block ones that you don't request (like the ones that pop up with onUnload and other annoying stuff). Google's toolbar has a great pop up blocker, but I believe it's only available for IE for now. It's free if you want to try it out.
You can also use resizeTo in the function that calls the pop up, instead of in the body tag of the window. If you're going to use resizeTo on a pop up, you may also want to use moveTo(x, y) as well to set where you want the pop up to appear. X is the offset from left of screen, and y is the offset from the top, both in pixels.