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

Two ways to refresh the parent window when closing_javascript skills

WBOY
Release: 2016-05-16 16:49:43
Original
1168 people have browsed it

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.

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template