By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,619 Members | 1,534 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,619 IT Pros & Developers. It's quick & easy.

new window, tabs and forms

P: n/a
If I call this:

myWin = window.open("test.htm", "", "");

I get a new separate window in Firefox but if I try it from a form

<form action='test.htm' method='post' target='myWin'
onsubmit="window.open('',this.target,'');return true;">

I get a new tab. How can I get a new separate window from a form?

Andrew Poulos
Jan 14 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Jan 13, 8:22 pm, Andrew Poulos <ap_p...@hotmail.comwrote:
If I call this:

myWin = window.open("test.htm", "", "");

I get a new separate window in Firefox but if I try it from a form

<form action='test.htm' method='post' target='myWin'
onsubmit="window.open('',this.target,'');return true;">

I get a new tab. How can I get a new separate window from a form?
The user's browser preferences should control whether new windows open
in an actual window or a tab. It seems that Firefox is buggy and that
certain combinations of attributes in the third argument of
window.open can trigger an actual new window to open even when the
user has set their preferences to opening new windows in a tab. Try
various combinations for the third attribute like the following

'toolbar=yes,location=yes,status=yes,menubar=yes,s crollbars=yes,resizable=yes
Jan 14 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.