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
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › API › Window › open
Window: open() method - Web APIs | MDN
Alternatively, the following example demonstrates how to open a popup, using the popup feature. ... const windowFeatures = "left=100,top=100,width=320,height=320"; const handle = window.open( "https://www.mozilla.org/", "mozillaWindow", windowFeatures, ); if (!handle) { // The window wasn't allowed to open // This is likely caused by built-in popup blockers. // … } In some cases, JavaScript is disabled or unavailable and window.open() will not work.
🌐
Webmaster World
webmasterworld.com › html › 3031854.htm
alternative to window.open() - HTML forum at WebmasterWorld - WebmasterWorld
Does anyone know of an alternative way of opening a link into a resized new window without using window.open? ... Maybe try using the target attribute, and putting javascript in the target page that shrinks the window?
🌐
Coderanch
coderanch.com › t › 118092 › languages › options-opening-window
options for opening a new window (HTML Pages with CSS and JavaScript forum at Coderanch)
My first thought would be to use a window.open(). I am not sure if there are any limitations in doing this with jsp or if there is a better approach than the window.open(). One large drawback to using a window.open() is the IE information bar that appears when a supposed pop-up is encountered. Thanks! ... This is entirely a client-side operation and hence you are limited to the mechanisms provided by HTML and JavaScript.
🌐
nopCommerce
nopcommerce.com › en › boards › topic › 19659 › javascript-windowopen-alternative
javascript window.open alternative - nopCommerce
October 4, 2012 - Well, now, an hour before going live, I found a problem. ie9 does not like window.open. There are plenty of solutions out there. Modals, writing new java functions, etc. But, with this asp.net mvc stuff, I have no clue what to really do to get it to work. Again, I'm just putting my html straight into the description and it works great. I'm at a loss and really need to go live ASAP. Running 2.65. I'm open to any suggestions to get a popup working that loads (at this point, late in the game) a link to my asp page (just on the root of the site).
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.

Find elsewhere
🌐
Stack Overflow
stackoverflow.com › questions › 54441164 › window-open-is-there-an-alternative-code
javascript - window.open - is there an Alternative code? - Stack Overflow
If you click on "Click" from any browser, a new tab will open going to 'next-page.php' However, if you have iOS and open this Fiddle from Google Search App, it will open just a blank tab. The code that seems to be not supported is on line 66 in Fiddle: wId = ''+new Date().getTime(); w = window.open('about:blank','myPopup_Window' + wId); form.attr('target', 'myPopup_Window' + wId);
🌐
Google Groups
groups.google.com › g › node-red › c › NE9kg2MOayE
NodeJS "window.open("URL")" alternative?
Currently I am running some flows ... website (open tab/window or just change URL, not super picky) but through my research I am having issue finding the correct method because JavaScript is not my best language and NodeJS is even farther behind. When attempting to the JavaScript function below (and in title) it errors that "Window." is not referenced which leads me to believe that not all libraries of JavaScript are included in Node default. Is there any good alternative to ...
🌐
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...
🌐
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.
🌐
JavaScript.info
javascript.info › tutorial › frames and windows
Popups and window methods
Popup windows are used rarely, as there are alternatives: loading and displaying information in-page, or in iframe. If we’re going to open a popup, a good practice is to inform the user about it.
🌐
Stack Overflow
stackoverflow.com › questions › 58726457 › window-open-alternative
javascript - Window.open alternative - Stack Overflow
Please share the code you have used to open the window. ... Can you clarify what you mean by "that new browser should not be visible"? Do you literally mean an invisible window? Or just hidden behind the existing window (a so-called "pop-under")? If the latter: Browsers are very good at preventing pop-unders these days, since they've been used for malicious purposes so often. ... You can't do that with browser-based JavaScript (or HTML, for that matter).
🌐
Javatpoint
javatpoint.com › javascript-window-open-method
JavaScript Window open method - javatpoint
JavaScript Window open method with javascript tutorial, introduction, javascript oops, application of javascript, loop, variable, objects, map, typedarray etc.