Home > Article > Web Front-end > Two ways to refresh the parent window when closing_javascript skills
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.