Create a table
<head>
<title>funct01 simple</title>
<script>
function doIt()
{
document.writeln('<table cellspacing="2" cellpadding="2" border="1">');
document.writeln('<tr><td>Daily Chores<ol><li>Finish all homework</li>');
document.writeln('<li>Clean room</li><li>Put away laundry</li></ol></td>');
document.writeln('<td>Weekly Chores<ol><li>Cut the grass</li>');
document.writeln('<li>Put out the trash</li><li>Put away video games</li>');
document.writeln('</ol></td></tr></table>');
}
</script>
</head>
<body>
<h1>Create a table</h1>
<input type=button value="Just do it" onClick='doIt();'>
</body>