Ciao ho scritto una funzione.la logica è esatta vi kiedo solo cortesemente di correggere la sintatti.
<html>
<head>
<script language="JavaScript" type="text/JavaScript">
function news(aa, mm, gg) {
var data= new Date()
var aaa = data.getYear()
var mmm = data.getMonth()
var ggg = data.getDate()
if ((aaa < aa) || (aaa <= aa && mmm < mm) || (aaa <= aa && mmm <= mm && ggg <= gg))
{document.write ('prova')}
else {
document.write ('non')}
}
</script>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<div ></div>
<table>
<tr><td ><script language="JavaScript">news(106, 04, 16);</script>
</td></tr></table>
</body>
</html>
<html>
<head>
<script language="JavaScript" type="text/JavaScript">
function news(aa, mm, gg) {
var data= new Date()
var aaa = data.getYear()
var mmm = data.getMonth()
var ggg = data.getDate()
if ((aaa < aa) || (aaa <= aa && mmm < mm) || (aaa <= aa && mmm <= mm && ggg <= gg))
{document.write ('prova')}
else {
document.write ('non')}
}
</script>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<div ></div>
<table>
<tr><td ><script language="JavaScript">news(106, 04, 16);</script>
</td></tr></table>
</body>
</html>