CBSE 2. WEB SCRIPTING - JAVA SCRIPT (5 MARKS)

 

10. Showing Date and Time in a Web Page

JavaScript

<!DOCTYPE html>

<html>

<head>

<title>Date and Time</title>

</head>

<body>

<script>

  document.write(new Date());

</script>

 

</body>

</html>

No comments:

Post a Comment