Open a new window with window.open()

Hi,

=20

in our web application, we try to open a popup-window with
window.open(). But instead of opening a new window, a new tab is opened.

=20

In the SeaMonkey preferences, we configured it, to open new links in a
new tab. With firefox, we had the same preferences, but when
window.open() was called, a new window was opened.=20

How can we configure SeaMonkey, so that it has the Firefox behavior when
calling window.open() ?

=20

Thanks in advance.

=20

=20

=20

-1
Artur
1/15/2010 9:22:30 AM
mozilla.dev.apps.seamonkey 1541 articles. 1 followers. Post Follow

2 Replies
1236 Views

Similar Articles

[PageSpeed] 5

Artur Zeiler schrieb:
> Hi,
>
> in our web application, we try to open a popup-window with
> window.open(). But instead of opening a new window, a new tab is opened.
>
> In the SeaMonkey preferences, we configured it, to open new links in a
> new tab. With firefox, we had the same preferences, but when
> window.open() was called, a new window was opened.
>
> How can we configure SeaMonkey, so that it has the Firefox behavior when
> calling window.open() ?

Have you inctalled any extensions?

Can you provide a sample page, please?

regards
Martin
-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - http://www.asciiribbon.org/index-de.html
0
Martin
1/15/2010 10:16:23 AM
Fri, 15 Jan 2010 11:16:23 +0100, /Artur Zeiler/:

> in our web application, we try to open a popup-window with
> window.open(). But instead of opening a new window, a new tab is opened.
> 
> In the SeaMonkey preferences, we configured it, to open new links in a
> new tab. With firefox, we had the same preferences, but when
> window.open() was called, a new window was opened.
> 
> How can we configure SeaMonkey, so that it has the Firefox behavior when
> calling window.open() ?

Which version of Firefox?  Observe the value of the 
"browser.link.open_newwindow.restriction" [1] preference, also.  In 
my setup:

// Open links, that would normally open in a new window, in the
// current tab/window.
browser.link.open_newwindow=1

// Divert all links according to browser.link.open_newwindow, unless
// the new window specifies how it should be displayed...
browser.link.open_newwindow.restriction=2

If the page calls:

     window.open(url, windowName, 'resizable');

then a new window will be opened despite my first preference.  IIRC 
there was a bug in Firefox 3 preventing the 
"browser.link.open_newwindow.restriction" option to work as 
expected.  The behavior should be all the same since Firefox 
1.0/SeaMonkey 1.0, otherwise.

[1] http://kb.mozillazine.org/Browser.link.open_newwindow.restriction

-- 
Stanimir
0
Stanimir
1/15/2010 3:37:51 PM
Reply:

Similar Artilces:

opening new window other than window.open
is there any other way of opening a new window... aside from window.open? window.open has a memory leak so i want to prevent using it as much as possible.Alvin ShihSoftware DeveloperMCP MCTS MCPD Hi window.showmodaldialog() but supports only IE....   Regards Suresh Kumar Goudampally Why dont you avoid pop up windows all together and use an iframe that is positioned over the content? Eric Pascarello.com | Twitter epascarello | LinkedIn Hi,Try Target="_blank" N.P.SenthilSoftware Engineer  Link buttons targer property is set to "_blank"...

window.open() opens new window
Firefox 19.0 Windows XP Pro SP-3 Example site URL: http://www.pcconnection.com/ (I've hit this problem at many sites, however.) Firefox is configured (enabled) as: Tools -> Options -> Tabs "Open new windows in a new tab instead" = Enabled Presumably this means when a page tries to open a new window (another instance of the web browser) that instead a new tab will appear in the current window. Works that way in IE8 (when "Always open popups in a new tab" is enabled). Go down the page and click on the "Site Help" link. What I get...

superreview requested: [Bug 286745] Open externally-launched links in a new tab or window : [Attachment 177879] Patch to make externally-launched links open in new window (Seamonkey only)
Jeremy Morton <bugzilla@game-point.net> has asked neil@parkwaycc.co.uk <neil.parkwaycc.co.uk@myrealbox.com> for superreview: Bug 286745: Open externally-launched links in a new tab or window https://bugzilla.mozilla.org/show_bug.cgi?id=286745 Attachment 177879: Patch to make externally-launched links open in new window (Seamonkey only) https://bugzilla.mozilla.org/attachment.cgi?id=177879&action=edit ...

superreview granted: [Bug 286745] Open externally-launched links in a new tab or window : [Attachment 177879] Patch to make externally-launched links open in new window (Seamonkey only)
neil@parkwaycc.co.uk <neil.parkwaycc.co.uk@myrealbox.com> has granted Jeremy Morton <bugzilla@game-point.net>'s request for superreview: Bug 286745: Open externally-launched links in a new tab or window https://bugzilla.mozilla.org/show_bug.cgi?id=286745 Attachment 177879: Patch to make externally-launched links open in new window (Seamonkey only) https://bugzilla.mozilla.org/attachment.cgi?id=177879&action=edit ...

superreview granted: [Bug 355352] [Cocoa] while the app is running, if no browser windows are open, clicking on the app in the dock doesn't open a browser window : [Attachment 248569] New and improved
Benjamin Smedberg [:bs] (bsmedberg@) <benjamin@smedbergs.us> has granted Josh Aas <joshmoz@gmail.com>'s request for superreview: Bug 355352: [Cocoa] while the app is running, if no browser windows are open, clicking on the app in the dock doesn't open a browser window https://bugzilla.mozilla.org/show_bug.cgi?id=355352 Attachment 248569: New and improved patch https://bugzilla.mozilla.org/attachment.cgi?id=248569&action=edit ------- Additional Comments from Benjamin Smedberg [:bs] (bsmedberg@) <benjamin@smedbergs.us> moa=bsmedberg (I didn't revi...

superreview requested: [Bug 355352] [Cocoa] while the app is running, if no browser windows are open, clicking on the app in the dock doesn't open a browser window : [Attachment 248569] New and improv
Josh Aas <joshmoz@gmail.com> has asked Benjamin Smedberg [:bs] (bsmedberg@) <benjamin@smedbergs.us> for superreview: Bug 355352: [Cocoa] while the app is running, if no browser windows are open, clicking on the app in the dock doesn't open a browser window https://bugzilla.mozilla.org/show_bug.cgi?id=355352 Attachment 248569: New and improved patch https://bugzilla.mozilla.org/attachment.cgi?id=248569&action=edit ------- Additional Comments from Josh Aas <joshmoz@gmail.com> The minor changes remaining (comments mostly) can be made on checkin. ...

OPEN NEW WINDOW USING window.open
Hi, can any eagle eyed geniuses spot what I'm doing wrong here? It's doing my nut! I'm simply trying to call a new page in a new window that I want to control the size, etc. I've tried two different ways - one from within my code behind and the other triggered by a LinkButton command action. Both do absolutely nothing. Please help... Private Sub InfoClick1(ByVal pSiteCode) Response.Write("<script>window.open('siteinfo.aspx?sitecode='" & pSiteCode & "','Info','left=20,top=20,height=500,width=850,toolbar=no,status=no,resizable=1,scrollbars=no')</script>") End Sub +...

superreview requested: [Bug 429926] Make Cmd+T open a new window when no browser windows are open : [Attachment 316692] BrowserOpenTab() even when no windows are open
Stefan <stefanh@bluebottle.com> has asked neil@parkwaycc.co.uk <neil@httl.net> for superreview: Bug 429926: Make Cmd+T open a new window when no browser windows are open https://bugzilla.mozilla.org/show_bug.cgi?id=429926 Attachment 316692: BrowserOpenTab() even when no windows are open https://bugzilla.mozilla.org/attachment.cgi?id=316692&action=edit ...

superreview granted: [Bug 429926] Make Cmd+T open a new window when no browser windows are open : [Attachment 316692] BrowserOpenTab() even when no windows are open
neil@parkwaycc.co.uk <neil@httl.net> has granted Stefan <stefanh@inbox.com>'s request for superreview: Bug 429926: Make Cmd+T open a new window when no browser windows are open https://bugzilla.mozilla.org/show_bug.cgi?id=429926 Attachment 316692: BrowserOpenTab() even when no windows are open https://bugzilla.mozilla.org/attachment.cgi?id=316692&action=edit ...

window.open and window.opener
Sorry for a really dumb post. I am not a scripting person... I find the whole thing a bit strange really with losely coupled types ect...Anyway, I am putting together a ASP.NET v2 application. One of the pages I am planning on implementing a link to open a pop-up window. In this popup window, the user will select the location of somthing, the window close and the value returned back to one of the parent browsers controls. I know this is not rocket science and I have done endless searches to try and find the answer. I am loading up the page and passing in the ClientID of the control I wish to...

how to restrict to open new window from a dialog box(i.e new window should not open from a dialog box)
i have a button. onclick event A dialog box is opened using js.The page that opens in dialog box consist of some server side scripts i.e a drop down box(C#) on which when i select a value then it retrieve some data from data base and display in a table.now the problem is that when i select value in dropdown menu then an other new window opens  and all data comes on that instead of a dialog box.so is there any way that no more windows should open after a dialog box i.e all calculations should be in the one dialog box no new windows should be opened.RegardsSHOAIB RIZWAN I have to c...

superreview requested: [Bug 255123] Opening URL from another app focuses an existing window before opening a new window : [Attachment 161778] Updated patch repsecting loadDivertedInBackground prefere
Dan M <danm.moz@gmail.com> has asked Brian Ryner (IBM) <bryner@brianryner.com> for superreview: Bug 255123: Opening URL from another app focuses an existing window before opening a new window https://bugzilla.mozilla.org/show_bug.cgi?id=255123 Attachment 161778: Updated patch repsecting loadDivertedInBackground preference https://bugzilla.mozilla.org/attachment.cgi?id=161778&action=edit ------- Additional Comments from Dan M <danm.moz@gmail.com> I have mixed feelings about this patch. (1) It's (mostly) Windows-only, and this is an XP bug. Certainly you ...

superreview granted: [Bug 255123] Opening URL from another app focuses an existing window before opening a new window : [Attachment 161778] Updated patch repsecting loadDivertedInBackground preferenc
Brian Ryner (IBM) <bryner@brianryner.com> has granted Dan M <danm.moz@gmail.com>'s request for superreview: Bug 255123: Opening URL from another app focuses an existing window before opening a new window https://bugzilla.mozilla.org/show_bug.cgi?id=255123 Attachment 161778: Updated patch repsecting loadDivertedInBackground preference https://bugzilla.mozilla.org/attachment.cgi?id=161778&action=edit ...

open a new pop-up window having a pop-up window already open....
Hi all, pls help I have done coding to open a pop window, its opening without any problem, now I want to open an new pop-up window keeping the older pop-up open, currently as I try to open page in the new pop-up, the page is displayed in the older pop up window instead of showingin a new pop-up window. Please help in this regard Thanks  Avaneesh Bajoria Hi,you popup window objects may be overwritten... post your code... VasanthakumarSoftware Engineer.  hi!use different titles for each window:        var i =0;    &nb...

Web resources about - Open a new window with window.open() - mozilla.dev.apps.seamonkey

Window - Wikipedia, the free encyclopedia
This article is about the part of a building. For the Microsoft operating system, see Microsoft Windows . For other uses, see Window (disambiguation) ...

Microsoft Windows Information, Solutions, Tools - Windows IT Pro
Microsoft Windows information and solutions for IT pros. Topics include cloud computing, Windows Server, Exchange, Outlook, PowerShell, virtualization, ...

The Windows Blog
The Windows Blog is Microsoft's Official Blog for the Windows Operating System.

Woman spotted throwing flaming rags from car window in Yangebup: resident
A report of a person driving around throwing flaming rags from their car in the Yangebup area has prompted a call from the Department of Fire ...

Windows 10 Mobile review: Windows on phones gets rebooted. Again.
One way or another, Microsoft has been promising Windows 10 Mobile for years. References to "Windows Everywhere," the notion that some version ...

Shut down Windows 10 telemetry with Win10 Spy Disabler
Windows 10 brought us Cortana. Edge. A brand new Start Menu. Oh, and a host of new and extended ways for Microsoft to capture data on your activities. ...

Employees were so angry about Good's sale to Blackberry, someone broke a conference room window
When email security company Good Technology sold to BlackBerry for $425 million this past September — well below its last private valuation of ...

Virgin Mary image seen on Ga. church window
Rainbow-hued coating on window pane inspires Catholic priest to post on FaceBook

Microsoft preps for Windows 10 upgrade push
Windows 10 is now on more than 148 million PCs , according to data from analytics vendor Net Applications. But the rate at which users are moving ...

Bufferzone Hooks Into Windows to Containerize Security
Bufferzone's technology segregates the activity that is done over the Web by running it within a secure container.

Resources last updated: 12/25/2015 6:39:24 AM