Here's the simplest way to do it.
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title></title>
<script type="text/javascript"><!--
window.onload = function(){
if(!document.getElementById) return;
document.getElementById('example').style.display='none';
}
// -->
</script>
</head>
<body>
<p>If JavaScript is enabled the following element will be hidden when the page
finishes loading.</p>
<p id="example">Hello World</p>
</body>
</html>
Bookmarks