You can access parent window using ‘window.opener‘, so, write something like the following in the child window:
<script>
window.onunload = refreshParent;
function refreshParent() {
window.opener.location.reload();
}
</script>
More Related Contents:
- How to make JavaScript execute after page load?
- Is it possible to append to innerHTML without destroying descendants’ event listeners?
- Document.write clears page
- How to make HTML element resizable using pure Javascript?
- HTML input file selection event not firing upon selecting the same file
- How to pass parameter to function using in addEventListener?
- Javascript trick for ‘paste as plain text` in execCommand
- How to display a confirmation dialog when clicking an link?
- Want to add “addEventListener” on multiple elements with same class [duplicate]
- Pass mouse events through absolutely-positioned element
- adding multiple event listeners to one element
- Ignore mouse interaction on overlay image
- Why don’t audio and video events bubble?
- Checkbox Check Event Listener
- Enter key press behaves like a Tab in Javascript
- Detect if HTML5 Video element is playing [duplicate]
- Perform action when clicking HTML5 datalist option
- HTML DOM: Which events do not bubble?
- How to Clear/Remove JavaScript Event Handler?
- Handling “onclick” event with pure JavaScript
- Looping through files for FileReader, output always contains last value from loop
- event.clipboardData.setData in copy event
- Popstate on page’s load in Chrome
- visibilitychange event is not triggered when switching program/window with ALT+TAB or clicking in taskbar
- Reload an HTML page just once using JavaScript
- onclick event function in JavaScript
- Fire oninput event with jQuery
- Are dynamically inserted tags meant to work?
- Display Spreadsheet Data to HTML Table
- Replacement for deprecated `keypress` DOM event