-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathday_12_settimeout.html
More file actions
31 lines (29 loc) · 933 Bytes
/
day_12_settimeout.html
File metadata and controls
31 lines (29 loc) · 933 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
27
28
29
30
31
<!DOCTYPE html>
<html>
<body>
<div>Here we are using settimeout method in javascript</div>
<p>THis is our 12 day of javascript basic classes.</p>
<script>
// var a;
// a = setTimeout(fun, 2000);
// function fun(){
// alert("hii manisha");
// }
///just for checking
// 7 WAYS TO PREPARE FOR A JAVASCRIPT INTERVIEW
// Review JavaScript fundamentals.
// Master key concepts.
// Study common interview questions.
// Master debugging skills.
// Practice coding.
// Build projects.
// Mock interviews.
var a = setTimeout(fun1, 2000);
function fun1(){
var w1 = window.open();
w1.document.write(" <h2> Welcome to the javaTpoint.com </h2>");
setTimeout(function(){w1.close()}, 2000);
}
</script>
</body>
</html>