Edu-Tester
Home
Posts RSS
Comments RSS
Edit
Tuesday, May 4, 2010
Javascript Tester
After edit the code below, then click to see the result.
<html> <body> <script type="text/javascript"> var d = new Date(); var time = d.getHours(); if (time<10) { document.write("<b>Good morning</b>"); } else if (time>=10 && time<16) { document.write("<b>Good day</b>"); } else { document.write("<b>Hello World!</b>"); } </script> <p> This example demonstrates the if..else if...else statement. </p> </body> </html>
Result:
Designed for DVC Comsc-100 1242/8263
0 comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Sponsored By
Edu-Tester
is Powered by
Blogger
and Wearing
Capung Template
; an XML Blogger Template Designed By
Gre | Template-Godown
0 comments:
Post a Comment