Home  >  Article  >  Web Front-end  >  Two ways to refresh the parent window when closing_javascript skills

Two ways to refresh the parent window when closing_javascript skills

WBOY
WBOYOriginal
2016-05-16 16:49:431077browse

window.opener.location.reload() refreshes the parent window
window.opener.location.reload() and window.opener.location.href=window.opener.location.href

are both pop-up windows Used to refresh the parent window when closed.

But if window.location.Reload has a data submission action, it will prompt whether to submit (yes and no options)

window.opener.location.href=window.opener.location. href is a directed URL to submit data, so there will be no yes and no

selection boxes.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn