Forum Moderators: open
<html>
<head>
<script>
<!--
function show()
{
var h='<table border=1 border-color=red><tr><td>a</td><td>b</td></tr><tr><td>22</td><td>39</td></tr></table>';
document.getElementById("junk").innerhtml = h;
}function hide()
{
document.getElementById("junk").innerhtml = "<font color=red>Table was hidden!</font>";
}function text()
{
document.getElementById("junk").innertext = "Show some message.";
}
//-->
</script>
</head>
<body>
<input type=button onClick="show();" value="Show"> <input type=button onClick="hide();" value="Hide"> <input type=button onClick="text();" value="Text">
<div id=junk></div>
</body>
</html>