Friday, 5 June 2020

Display date & time using javascript function



<!DOCTYPE html>
<html>
<head >
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <h1>Display Date and Time</h1>
        <script type="text/javascript">
            document.write("<p>" + Date() + "</p>");
        </script>
    </div>
    </form>
</body>
</html>


Output:
Posted By: pankaj_bhakre

No comments:

Post a Comment