From a pop up JSP page, on close I am refreshing the parent page.
POPUP page is created by:
top.f_dialogOpen(url, 'MYPOPUPPAGE','width=1200px, height=470px');
JS to close the popup and refresh the parent page:
function closePopUp()
{
top.frames.location.reload(false);
top.f_dialogClose();
}
This refreshes the parent page but before refreshing following JS alert appears:
Can I disable this alert? I dnt want this alert to appear as I refresh the parent page
Thanks Roberto, based on your recommended link, Just changing window.location in JavaScript is dangerous because the user could still hit the back button and resubmit the post, which could have unexpected results (such as a duplicate purchase). PRG is a much better solution
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.