You should be using some kind of custom made popups and dialogue like

  1. http://umairj.com/27/how-to-create-simple-modal-dialogue-using-jquery/

  2. http://www.jquery4u.com/windows/14-jquery-modal-dialog-boxes/

Answer from Harshil Kulkarni on Stack Overflow
🌐
JavaScript in Plain English
javascript.plainenglish.io › say-goodbye-to-window-open-df6056343797
Say Goodbye To window.open👋
July 20, 2025 - // Old way with window.open const popup = window.open('https://example.com', 'popup', 'width=400,height=300'); // Often blocked by browsers // New way with Document PiP const pipWindow = await documentPictureInPicture.requestWindow({ width: 400, height: 300 }); // Always works, always on top
Discussions

Jquery or Javascript alternative to window.open to get a different target
Find answers to Jquery or Javascript alternative to window.open to get a different target from the expert community at Experts Exchange More on experts-exchange.com
🌐 experts-exchange.com
December 11, 2014
searching for an alternative to window.open without opening a window lol
I think you gotta understand PHP scripts aren't just files you can "open". PHP files are meant to live on a proper HTTP server. When someone goes to the URL (something like example.com/script.php ) his or her client (the web browser) can do a GET request or a POST request. The php script can then do something with this data. In your example, JavaScript could store the password in a variable and pass it to PHP using an HTTP POST request via an HTML form or the fetch API (make sure its HTTPS when dealing with passwords). Your PHP script will have this data available in $_GET and $_POST and you can check it against a password hash. By the way, the if (password.toLowerCase() == "password") thing is a big no-no! Check out https://www.php.net/password and this video , you'll understand why. More on reddit.com
🌐 r/learnjavascript
1
1
June 5, 2020
alternate method for window.open
I have a js function, when I give async as false it opens as new window, but when i give async as true its showing as pop up I need to make the code as async as true, but it should open as new wind... More on stackoverflow.com
🌐 stackoverflow.com
Modernized version of window.open() API
Flip the default so usually you don't get opener access, and you have to opt in to it · Not parse the URL relative to the entry settings object (Minimize usage of the entry concept #1431) but instead use the relevant settings object like other modern APIs. Not special case the empty string or about:blank URLs · Be extensible to future additional options without adding more terrible string parsing; see e.g. Use a different overload to handle window... More on github.com
🌐 github.com
15
January 11, 2022
🌐
Webmaster World
webmasterworld.com › html › 3031854.htm
alternative to window.open() - HTML forum at WebmasterWorld - WebmasterWorld
August 2, 2006 - Maybe try using the target attribute, and putting javascript in the target page that shrinks the window? ... Fotiman that's an interesting idea. One concern I have with doing that is how would people useing a brower with tabbed widows fell about the link opening a new tab and then resizing their main window.
🌐
JavaScript.info
javascript.info › tutorial › frames and windows
Popups and window methods
It is null for all windows except popups. If you run the code below, it replaces the opener (current) window content with “Test”:
🌐
Experts Exchange
experts-exchange.com › questions › 28579365 › Jquery-or-Javascript-alternative-to-window-open-to-get-a-different-target.html
Solved: Jquery or Javascript alternative to window.open to get a different target | Experts Exchange
December 11, 2014 - jQuery will emulate the click in so far as any click events/functions attached to the link will be fired It cannot simulate a person actually clicking the link. There is no reason a simple window.open shouldn't work
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › API › Window › open
Window: open() method - Web APIs | MDN
In some cases, JavaScript is disabled or unavailable and window.open() will not work. Instead of solely relying on the presence of this feature, we can provide an alternative solution so that the site or application still functions.
🌐
nopCommerce
nopcommerce.com › en › boards › topic › 19659 › javascript-windowopen-alternative
javascript window.open alternative - nopCommerce
October 4, 2012 - OK, so I pretty much broke all rules of good practice because I have no asp.net mvc experience and couldn't figure out how to create a proper popup in my code. Well, I got the window to popup, but no view... anyway, I did it the old way with an asp page. Classic. The good stuff. Anyway, I have a link to the ASP page as a javascript window.open popup under the description on my product variant.
Find elsewhere
🌐
ServiceNow Community
servicenow.com › community › upgrades-and-patching-forum › alternative-for-window-open-in-angular-services › m-p › 3042885
Alternative for Window.Open() in Angular services - ServiceNow Community
September 12, 2024 - $scope.openPopUp = function() { var url = "$chat_support.do?queueID=" + $scope.data.connect_support_queue_id; var popup = window.open (url, "popup", "width=900, height=600"); };
🌐
W3Schools
w3schools.com › jsref › met_win_open.asp
Window open() Method
The open() method opens a new browser window, or a new tab, depending on your browser settings and the parameter values.
🌐
Coderanch
coderanch.com › t › 53001 › frameworks › alternative-window-open-Struts
Is there any alternative for window.open in Struts (Struts forum at Coderanch)
That pops up a new window, full size with all the menus and title bars active. Here is an example of a JavaScript function that my project uses to open up popup windows (you pass in the name of the display action): function openPopup(action) { open(action, '', 'width=600,height=600,left=0,top=0,alwaysRaised=yes,status=no,scrollbars=yes,resizable=no,menubar=no'); } - Brent
🌐
Coderanch
coderanch.com › t › 118092 › languages › options-opening-window
options for opening a new window
One large drawback to using a window.open() is the IE information bar that appears when a supposed pop-up is encountered. An alternative to window.open is to use the target tag on a link or form. But that doesn't give you as much control.
🌐
Zipy
zipy.ai › blog › how-to-open-a-url-in-a-new-tab-and-not-a-new-window
how to open a url in a new tab (and not a new window)
April 12, 2024 - Navigating the vast world of web development, one often encounters the need to enhance user experience by implementing features that are both intuitive and efficient. A common yet critical feature is opening a URL in a new tab rather than in a new window. This action not only keeps the user's ...
🌐
Google Groups
groups.google.com › g › node-red › c › NE9kg2MOayE
NodeJS "window.open("URL")" alternative?
Where have you put this call to `window.open()`? A node's .js file is all executed on the server side so can not open any web pages on the client (browser) side.
Top answer
1 of 3
1

Your code is a little bit weird so it's hard to make the adjustment properly but this is gist of it:

showNewWindow: function(menu) {
    var me = this,
        newWindowId = sports.util.Utils.randomString(12);

    //
    // Make a synchronous request so that the new window will
    // not load as a popup.
    //
    debugger;
    var popup = sports.util.Utils.openNewWindow('', 'menu', {}, null, null, newWindowId);
    Ext.Ajax.request({
        async: false,
        url: sports.util.Utils.getContextPath() + '/tabClicks.do',
        params: {
            oldWindowId: sports.util.Utils.getWindowName(),
            newWindowId: newWindowId
        },
        success: function() {
            popup.location.href = "/desktop/main";
        },
        scope: me
    });
},
2 of 3
0

Popup blockers try to tell when a window is being opened in direct response to a user action or spontaneously by the application. The way they probably do this is by checking whether the function that called window.open() was run in response to a user-triggered event like a mouse click.

When you perform a synchronous AJAX request, the function that was triggered by the mouse click is still running when the response arrives and the success function calls window.open. So it's considered to be a user-requested window, not a popup.

When you use asynchronous AJAX, the click handler is no longer running when the success function runs. The asynchronous call to window.open is considered spontaneous by the browser, so it blocks it.

I don't think there's any way around this, because anything you could do could also be used by everyone else to get around popup blockers, and they would be useless.

🌐
GitHub
github.com › whatwg › html › issues › 7485
Modernized version of window.open() API · Issue #7485 · whatwg/html
January 11, 2022 - window.open() is full of legacy design mistakes. Here is a proposal for what, IMO, it should look like: window.openWindow(url, { allowOpenerAccess, referrerPolicy }); window.openPopup(url, { left, top, width, height, allowOpenerAccess, r...
Author   domenic
🌐
Electron
electronjs.org › opening windows from the renderer
Opening windows from the renderer | Electron
Non-standard features (that are not handled by Chromium or Electron) given in features will be passed to any registered webContents's did-create-window event handler in the options argument. frameName follows the specification of target located in the native documentation. When opening about:blank, the child window's WebPreferences will be copied from the parent window, and there is no way to override it because Chromium skips browser side navigation in this case.
🌐
WindowSwap
window-swap.com
WindowSwap - Watch windows around the world
Open a new window somewhere in the world. Look through windows shared by real people, and share yours to become a part of this global community.
🌐
ActivityWatch
activitywatch.net
ActivityWatch - Open-source time tracker
The best free and open-source automated time tracker. Cross-platform, extensible, local/privacy-first. Tracks app and website usage on Windows, macOS, Linux & Android. All data stays on your device.