I have an HTML page (index.htm) and a link in it. Clicking on that link opens a ColorBox iFrame (popup.htm) its a form with submit button.
Now when someone submits the form in that popup.htm page, I need index.htm to refresh automatically to -> index2.htm.
I have tried this and variations with no success.
<form onsubmit="window.opener.location = 'http://www.myDomain.com/index2.htm';">
您是否尝试过<form onsubmit="window.top.location.href = 'http://www.myDomain.com/index2.htm';">
当然,iframe和top必须在同一个域中,并且不能相同来源政策。
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.