-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtimer.html
More file actions
26 lines (21 loc) · 935 Bytes
/
timer.html
File metadata and controls
26 lines (21 loc) · 935 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!DOCTYPE html>
<html>
<div class="right">
<a href = "C:\Users\CortexHub\Desktop\project\My web.html" style="background-color:#ffffff">Home|</a>
<a href = "C:\Users\CortexHub\Desktop\project\AboutUs.html" style= "background-color:#ffffff"> About Us</a>
<a href = "C:/Users/CortexHub/Desktop/project/bookings.html" style= "background-color:#ffffff">Bookings</a>
<a href = "C:\Users\CortexHub\Desktop\project\Survey.html" style="background-color:#ffffff">Quiz</a>
<a href = "C:/Users/CortexHub/Desktop/project/Contact%20us.html"style="background-color:#ffffff" >Contact Us|</a
<body>
<p>A script on this page starts this clock:</p>
<p id="demo"></p>
<button onclick="clearInterval(myVar)">Stop time</button>
<script>
var myVar = setInterval(function(){myTimer()},1000);
function myTimer() {
var d = new Date();
document.getElementById("demo").innerHTML = d.toLocaleTimeString();
}
</script>
</body>
</html>