Either do that or set up your web browser to delete everything besides passwords every time you click 'X'. I don't practice safe browsing and the only virus's I get are from Limewire.
If your running Firefox you can easily set that up as I have, and in Internet Explorer you can do the same.