How to put a "close window" link on a page?

Q

How to put a "close window" link on a page?

✍: Guest

A

<a href='javascript:window.close()' class='mainnav'> Close </a>

2010-11-30, 3149👍, 0💬