Jump to Real's How-to Main page

Erase a page without loading another page

<HTML><HEAD><TITLE></TITLE></HEAD>
<BODY>
Yo!
<button onclick="document.location.href='about:blank'" >
erase me
</button>

<button onclick="location.replace('about:blank')" >
erase me (plus no history)
</button>
</BODY></HTML>
Try it :
If you find this article useful, consider making a small donation
to show your supportfor this Web site and its content.

Written and compiled by Réal Gagnon ©1998-2005
[ home ]