Skip to main content

Questions tagged [window.open]

It is a JavaScript method that opens a new window and loads the document specified by a given URL.

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 ...
BobN's user avatar
  • 177
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 ...
yun's user avatar
  • 35
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]](...
Struggling programmer's user avatar
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 ...
Jono's user avatar
  • 13
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=...
Nidhi Dadiya's user avatar
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 ...
Boann's user avatar
  • 49.5k
-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 ...
Andrew Newby's user avatar
  • 5,147
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 ...
Hansika Diddugoda's user avatar
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 ...
Jamars's user avatar
  • 21
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("...
Tiago Barroso's user avatar
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=...
nicolastpi01's user avatar
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....
user avatar
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 ...
Heathcliff's user avatar
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 ...
pushkin's user avatar
  • 10k
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", "...
Frederik Gysel's user avatar

15 30 50 per page
1
2 3 4 5
75