简体   繁体   中英

How to redirect inside a modal window using javascript?

If I open a pop up window using window.showModalDialog

Doing a

document.location.href=xxx

or

 window.location=xxx

or

 window.location.assign(xxx)

inside that window, causes a new window to be opened.

How can I do a redirect within a modal window? Even if it works only in IE, that would be satisfactory.

像这样:

window.open("www.youraddress.com","_self")

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM