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>

2008-10-07, 3990👍, 0💬