Create a webpage to print the running time using HTML?

Tripati_tutu
Posted by Tripati_tutu under JavaScript category on | Points: 40 | Views : 4064
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title ></title>
<meta http-equiv="refresh" content="1"/>
</head>
<body>
<script type ="text/javascript" language = "javascript">
var obj = new Date();
document.write('<h1 align="center"> <font color="red">' + obj.getHours() + ":" + obj.getMinutes() + ":" + obj.getSeconds() + '</font></h1>');
</script>
</body>
</html>

Comments or Responses

Login to post response