Search DaTutorials:  
HOME
VB Script Tutorials
Introduction
Reference
Tutorials

Show current time

Description:


How to show the current time.

Code:


<html>
<body>
<head>
<script type="text/vbscript">

function Showtime()

 t = Time()
 document.write(t)

end function

</script>

</head>
<body>
<p>
The time is:
<script type="text/vbscript">
Showtime();
</script>
</p>

</body>
</html>

See working example:


Keywords:

JavaScript: function, Time

DHTML: document.write


     Cheap Car Insurance | Car Insurance | Hen Night | Loans | Loan Secured
Home     Link To Us     Ad With Us     Contact Us     Tell A Friend     Affiliates     Blog     MsOfficeHelp