This works if the location of the newly opened window is same-origin:
var w = window.open("https://stackoverflow.com/questions/1372022/child.html")
w.addEventListener('load', w.doSomething, true);
More Related Contents:
- Write tags in HTML and print
- Why can I change a constant object in javascript
- Differences between Javascript regexp literal and constructor
- What is difference between width, innerWidth and outerWidth, height, innerHeight and outerHeight in jQuery
- Why the onclick element will trigger twice for label element
- How to remove element from array in forEach loop?
- Slowdown due to non-parallel awaiting of promises in async generators
- how to dynamically add options to an existing select in vanilla javascript
- How can I get city name from a latitude and longitude point?
- How to reorder divs using flex box?
- ES6 destructuring object assignment function parameter default value
- Load event not fired on Safari when reloading page
- Multiple Select limit number of selection
- Flex items not shrinking when window gets smaller [duplicate]
- Compare 2 JSON objects [duplicate]
- How to force a functional React component to render?
- stack and heap in V8 ( JavaScript)
- Dynamic deep setting for a JavaScript object [duplicate]
- Is there any limitation on JavaScript Max Blob size
- Using a Set data structure in React’s state
- Why is it impossible to change constructor function from prototype?
- sweet-alert display HTML code in text
- 307 Redirect when loading analytics.js in Chrome
- How can I include all JavaScript files in a directory via JavaScript file?
- How to fix chrome-extension inline JavaScript invocation error?
- How can I capture an image via the user’s webcam using getUserMedia?
- What to use instead of FileReader for Safari?
- Why is try {} .. catch() not working with async/await function?
- does location of e.preventDefault() matter
- Is it bad practice to pass a string to settimeout? If yes, why? [duplicate]