I have a simple ASP.NET web form on a page, which is contained in an iframe
on another page.
After this form has been submitted, I want the parent page, which contains the iframe
, to be redirected to a particular URL.
How can I do this?
I've tried:
window.opener.location.href='www.domain.com'
But window.opener
returns a null
value. I think this is to do with the PostBack.
Any help much appreciated!
尝试改为使用window.parent对象( window.opener.location.href )完成此任务。
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.