2013-10-30 37 views
0

如果我打開使用window.showModalDialog如何使用javascript在模態窗口內重定向?

一個彈出窗口做一個

document.location.href=xxx 

window.location=xxx 

window.location.assign(xxx) 

該窗口內,將導致一個新的窗口被打開。

如何在範圍內重定向模態窗口?即使它只在IE中有效,那也是令人滿意的。

+0

你從哪裏設置'window.location'?如果我從模態調用,它會在Chrome中更新我的模態。 – Mathletics

+0

在Firefox中也是如此。它只在IE中嘗試我的演示時在新窗口中打開。 –

+0

我需要它工作在:( – developer747

回答

0

像這樣:

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

這不工作在ie :( – developer747