开发者

Reload parent window when new window refresh or reload

im not sure if can explain this well, im new to jquery, It goes something like this, I have a parent window and in the parent window there's a link button and when the link button was clicked a modal popup will appear and in the modal popup there's a button, when i click the button a new window will open and the popup window will close, my exact requirement is that, when the new window refresh or reload thats t开发者_开发技巧he time the parent window will also reload or refresh. They said this is possible in jquery.

Thanks in advance


Try if(window.parent) { window.parent.location.reload(); }

Or even better, do not use popups but inline "popups", i.e. divs - like those: http://jqueryui.com/demos/dialog/

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜