开发者

Reload parent window when new window refresh or reload

开发者 https://www.devze.com 2023-03-03 14:29 出处:网络
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

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

精彩评论

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

关注公众号