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
🌐
Webmaster World
webmasterworld.com › html › 3031854.htm
alternative to window.open() - HTML forum at WebmasterWorld - WebmasterWorld
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.
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
May 30, 2020
alternate method for window.open - javascript
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
Alternative for javascript window method for visualforce pages in lightning - Salesforce Stack Exchange
With the lightning readiness report there is mention that javascript window method won't perform as supposed to in Lightning. Salesforce documentation suggest sforce.one navigation methods to replace More on salesforce.stackexchange.com
🌐 salesforce.stackexchange.com
🌐
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.
🌐
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
🌐
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.
🌐
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”:
🌐
Coderanch
coderanch.com › t › 118092 › languages › options-opening-window
options for opening a new window (HTML Pages with CSS and JavaScript forum at Coderanch)
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.
🌐
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
Find elsewhere
🌐
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
🌐
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.
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.

🌐
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"); };
🌐
Quora
quora.com › How-do-you-change-JavaScript-code-of-window-open-to-not-open-in-a-new-window
How to change JavaScript code of window.open to not open in a new window - Quora
Answer (1 of 2): You don't have to change the behavior of [code js]window.open[/code] to target the same window, because [code js]window.open[/code] already supports this option. First you need to give your window a name, then you provide that name to [code js]window.open[/code] as the second pa...
🌐
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
🌐
SitePoint
sitepoint.com › html & css
Target=“_blank” vs window.open - HTML & CSS - SitePoint Forums | Web Development & Design Community
June 30, 2014 - I’m working on an application where users enter some input and they shouldn’t leave the page when clicking on share links, e.g. a Facebook share link: Share on Facebook I know it’s very common to use popup windows for such links. But does it have any advantage over a simple target=“_blank” attribute?
🌐
Stack Overflow
stackoverflow.com › questions › 58726457 › window-open-alternative
Window.open alternative
Actually my requirement is, In my website i have integrated third party website API. SO when i will login in my website it should be automatic login in that party website as well l. for that auto login i have used window.open and pass the third party website url