开发者

Javascript: How can a popup close itself?

I have a page that sometimes open in a popup and sometimes open normally. How can I create a link that closes the page if it'开发者_运维百科s in a popup?


Use javascript:

window.close();

Or in a link:

<a href="javascript: window.close();">CLOSE ME</a>
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜