开发者

How to close the pop up window of modal dialog?

开发者 https://www.devze.com 2022-12-25 02:42 出处:网络
I am using modal dialog to validate server credentials. After clicking on submit button it开发者_如何学Pythonpops up new window.

I am using modal dialog to validate server credentials. After clicking on submit button it开发者_如何学Python pops up new window. Further i want call a servel. But its get called in the same pop up window. I want to call it in the parent window by closing the pop up window. How to achieve this?


// opening new window
var myWindow = window.open(...);

// when you want to close it
myWindow.close();

If you want to close the popup window in JS executed on this new window's content it's even easier:

window.close()
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号