Ecco come fare....
codice:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<script language="JavaScript" type="text/javascript">
<!--
function provacreatabelladinamica() {
htmlCode = ""
htmlCode += "
tabella lotto-superenalotto
per ulteriori velocissime
elaborazioni dinamiche";
htmlCode += "
";
htmlCode += "<table align=center border=1 bgcolor=yellow><td width=200>";
htmlCode += "<tr><td>Sono creato automaticamente</td></tr>";
htmlCode += "</table>";
return htmlCode;
}
//-----------------
function azione() {
document.getElementById('div1').innerHTML=provacreatabelladinamica();
}
//-->
</script>
</head>
<body>
<div id="div1"></div>
<script language="JavaScript" type="text/javascript">
<!--
azione();
//-->
</script>
</body>
</html>