Javascript
<!doctype HTML PUBLIC "-//W3C//DTD HTML 4.0 transitional//en" >
<title> Example1 </title>
<style>
Body{font-size:34px;color:green;font-weight:bold}
</style>
<script></script>
<script language= "JavaScript" type= "Text/javascript" >
<!--
/*document.write ("Hello Word!" + "<br>");
This is a single-line comment and will not be shown here.
document.write (New Date () + "<br>");
Here is a multiline comment.
Content in this area will not be displayed.
document.write (New Date (). toGMTString () + "<br>");
var date = new Date ();
document.write (Date.gettime () + "<br>");
-->
</script>
<script language= "JavaScript" type= "Text/javascript" src= "Exp.js" >
</script>
<script language= "JavaScript" type= "Text/javascript"
<!--
Function ShowTime () {
var CurrentTime = new Date ();
var strdate = currenttime.getyear () + ' year ';
strdate + = Currenttime.getmonth () + ' month ';
strdate + = currenttime.getdate () + ' Day ';
strdate + = currenttime.gethours () + ': ';
strdate + = currenttime.getminutes () + ': ';
var second = Currenttime.getseconds ();
if (second<10) {
strdate = ' 0 ' + currenttime.getseconds ();
}else{
strdate + + currenttime.getseconds ();
&NBSP;&NBSP}
alert (strdate);
}
//-->
</script>
<noscript> Your browser does not support scripting language running </noscript>
<body>
<b><font size= "45px" color= "Red" > here is the text in the body tag </font></b>
<br><br>
<center>
<form method=post action= "#" >
<input type= "button" name= "button" value= "Show Time"
/>
<input type= "button" name= "button" value= "Show Time"/>
</form>
<a href= "Javascript:showtime (); alert (' Welcome to learn JavaScript ')" > Show Time </a>
</center>
</body>