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.
Discussions

javascript - window.opener alternatives - Stack Overflow
I am opening a modal popup window. Then I access a parent window textbox and other attributes using window.opener. It is working fine in firefox but not in IE8. It gives error 'window.opener is nul... More on stackoverflow.com
๐ŸŒ stackoverflow.com
javascript - window.open - is there an Alternative code? - Stack Overflow
In my code, once a user clicks on a button on my page, a new tab is supposed to be open, using the following JS code. It works fine on every browser, except on Google App Browser on iOS, where it ... More on stackoverflow.com
๐ŸŒ stackoverflow.com
January 30, 2019
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
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 certain methods such as ... Thanks in advance. ... I came with the same problem. I did not find the correct syntax supported in Lightning.I moved to Lightning Component or going to use style to create popup in VF page. ... Basically, you'd use a modal instead of close/open... More on salesforce.stackexchange.com
๐ŸŒ salesforce.stackexchange.com
๐ŸŒ
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).
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
January 30, 2019 - 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 ...
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.

๐ŸŒ
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).
๐ŸŒ
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...
๐ŸŒ
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.
๐ŸŒ
Javatpoint
javatpoint.com โ€บ javascript-window-open-method
JavaScript Window open method - javatpoint
May 22, 2017 - JavaScript Window open method with javascript tutorial, introduction, javascript oops, application of javascript, loop, variable, objects, map, typedarray etc.
๐ŸŒ
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.