Questions tagged [window.open]
It is a JavaScript method that opens a new window and loads the document specified by a given URL.
window.open
1,112
questions
0
votes
0
answers
45
views
How do I allow the user to change the URL in the address bar for a window opened with window.opn?
I want to open a window (window.open) and allow the user to change the URL in he Address Bar.
I've looked at other questions about this but I've not found a solution.
One answer I found to another ...
0
votes
1
answer
48
views
window.open passing "+" symbol as ascii string
I try to open the URL from the SSRS by passing some parameters.
Most of the time, it works. But, when the parameter contains "+" and "/", it will not work.
Example: when i have ...
1
vote
4
answers
53
views
Can I get all hyperlinks that contain "@" then open them in new tabs?
I'm trying to open all hyperlinks on a page with link text that includes the "@" symbol.
Here's an example below
[[email protected]](https://stackoverflow.com/2342342352)
[[email protected]](...
0
votes
0
answers
61
views
Chrome extension service worker inject script to new about:blank tab
I am writing an extension to create a new tab then run some script. However, the error message "Error: Cannot access "about:blank" at origin "null". Extension must have ...
0
votes
1
answer
68
views
window.open opens in new tab when in fullscreen browser mode in mac
I have following code in my Next.js function. I want the url to be opened in the same tab but in a new smaller window.
window.open(url, '_blank', features)
where features are,
const features = `width=...
1
vote
1
answer
66
views
JavaScript Proxy not working for opened Window object
I need to Proxy a window object opened with window.open.
So far as I understand it (which is not well), the trivial "handler" here should effectively be the identity operation, passing thru ...
-2
votes
1
answer
62
views
Opening popup window on different monitor in Chrome [closed]
I can't believe the hassle I'm having trying to do this. What I need to do, is open up 12 popups on my PC - all opening a different page. Currently, I'm having to manually move 2 of them onto each ...
0
votes
0
answers
122
views
target = "_blank" redirects not working in ios webview mobile app
I have a a problem with a IOS webview mobile application. the stack is php and js. When the 'start' button is clicked, it redirects to the Rise 360 Articulate course in a new tab in Android and any ...
1
vote
0
answers
28
views
window.open returning null in firefox browser devtools
junior coder learning how to web hack
was using the devtools console in firefox browser, typed both in the stackoverflow main page:
samenewwindow = window.open('https://stackoverflow.com');
responded ...
0
votes
0
answers
41
views
Safari open.window has no effect with a delay bigger than 300ms
I want to open a new blank page in Safari after a while when a button click event is fired.
$( "#btn" ).on( "click", function() {
setTimeout(() => {
window.open("...
5
votes
2
answers
4k
views
window.open blocked due to active file chooser Chome updated
I was trying the following code in react, and I am getting the following error in Chrome (updated) and Opera browsers. Any idea how to fix it ?
return (
<Button
component="label"
role=...
0
votes
2
answers
45
views
opening the window depending on the variable
<html>
<body>
<button onclick="previous()">previous</button>
<button onclick="next()">next</button>
<img src="https://th....
0
votes
0
answers
112
views
Window.open() with parameters
I am trying to open a url in a new tab with some custom parameters, but the custom parameters never show when opening the page.
Example given: we have a url that already contains parameters. If we use ...
0
votes
0
answers
64
views
How to intercept all window features passed to window.open in WebView2?
I'm guessing I might just have to create an issue on their repo, but how does one access the raw string (or dictionary) of features that gets passed to window.open?
In Electron, I could intercept ...
0
votes
1
answer
90
views
popup link with the same target opens in different windows when clicked from different tab pages
I have a html page called home.html.
On that page I have a link to open a popup, the html code is as follows:
<a href='javascript: void(0);' onclick='window.open("popup.html", "...