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>
精彩评论