<html> <head> <script type="text/javascript"> //Write "Lunch-time!" if the time is 11 var d=new Date() var time=d.getHours()
if (time==11) { document.write("</br><b>Lunch-time!</b></br>") } else { document.write("</br><b>Oh Well, not yet breakfast then</b></br>") } </script> </head> <body> <script type="text/javascript"> document.write("Hello World!") confirm("sometext") alert("anothertext") prompt("sometext","defaultvalue") </script> </body> </html>
|