You can give as many class names to an element as you like:
HTML Code:
<table class="mytable remain">
But tables are not such a good idea. Also, you could create a division for either keeping things displayed in or for removing the display from, and alter the script code. I'd say like put everything that you want to disappear in:
HTML Code:
<div id="killthis">
stuff to remove here.
</div>
Code:
<script type="text/javascript">
function redirect(){
setTimeout(function(){window.location.href='http://www.yahoo.com/';}, 5000);
var d = document.createElement('div');
d.appendChild(document.createTextNode('You will be redirected to yahoo in 5 sec.'));
document.getElementById('killthis').style.display = 'none';
document.body.appendChild(d);
}
</script>
Bookmarks