1,108 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
Advice
0
votes
2
replies
96
views
useNavigate vs window.location.href( or window.open)
Title
React Router navigate does not work with external URLs
Body
I am working on a project where clicking a lecture card should redirect the user to an external website such as Udemy or Inflearn.
At ...
0
votes
1
answer
121
views
After polling a server using setinterval, file will download but won't open in a new tab
I am polling a server, using setInterval, until the pdf's that I want to download are ready...Once the pdfs are ready to download, I clear the interval, and then I call a function
async function ...
0
votes
2
answers
124
views
Why doesn't opening the same window via window.open() trigger a load event?
I have a button that when clicked opens a new tab via the following code:
const childWindow = window.open('myFile.html', 'my-target');
if (childWindow) {
childWindow.addEventListener('load', () =>...
0
votes
0
answers
19
views
WKWebView and window.open and banner ads
We hav a WKWebView running our App and want to show some banner ads. With WkWebView you need to handle clicks:
https://developers.google.com/ad-manager/mobile-ads-sdk/ios/browser/webview/click-...
0
votes
0
answers
48
views
Window.open in TAB only if the window is not open
I'm using the following code to open a window if it doesn't exist, or focus it if it does.
The issue I have is this opens a popup window, not a new tab in the browser.
var targetWin = window.open('','...
-1
votes
1
answer
48
views
SSRS and Imbedded JavaScript
I have a SSRS report Embed on a Browser’s Page. On this report i have an image. When I got Image properties on this image I select
Actions , Go to URL and have the following
JavaScript=
javascript:...
-1
votes
1
answer
99
views
Passing a variable to window.open method
I'm trying to pass a variable to window.open() method. I would like to use that passed variable to the opened html file.
<script>
var value = document.getElementById("oper").value;
...
0
votes
0
answers
81
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
68
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
89
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
245
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 ...
1
vote
1
answer
404
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=...
0
votes
1
answer
189
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 ...
0
votes
0
answers
256
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
43
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 ...