Categories
JavaScript Answers

How to reload parent window from child window with JavaScript?

Spread the love

Sometimes, we want to reload parent window from child window with JavaScript.

In this article, we’ll look at how to reload parent window from child window with JavaScript.

How to reload parent window from child window with JavaScript?

To reload parent window from child window with JavaScript, we call window.opener.location.reload.

For instance, we write

window.opener.location.reload(false);

to reload parent window from the child window.

Conclusion

To reload parent window from child window with JavaScript, we call window.opener.location.reload.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *