new window, tabs and forms

A

Andrew Poulos

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
 
P

Peter Michaux

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,scrollbars=yes,resizable=yes
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top