Skip to content

Commit b705fbb

Browse files
authored
on load call function
1 parent 464a681 commit b705fbb

3 files changed

Lines changed: 36 additions & 2 deletions

File tree

Example/Loader/image/loader.gif

327 KB
Loading

Example/Loader/index.html

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,31 @@
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<title>Document</title>
7+
<style>
8+
div{
9+
height: 500px;
10+
width: 1200px;
11+
margin: auto;
12+
text-align: center;
13+
margin-top: 300px;
14+
}
15+
</style>
16+
<script>
17+
function waitSixSeconds(){
18+
window.setTimeout("opens()", 6000);
19+
}
20+
21+
function opens(){
22+
window.open("welcome.html","_self");
23+
}
24+
</script>
25+
26+
727
</head>
8-
<body>
9-
28+
<body onLoad="waitSixSeconds()">
29+
<div>
30+
<img src="image/loader.gif" height="100" width="100">
31+
</div>
32+
1033
</body>
1134
</html>

Example/Loader/welcome.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Document</title>
7+
</head>
8+
<body>
9+
<h1>Welcome - to codeswithpankaj.com</h1>
10+
</body>
11+
</html>

0 commit comments

Comments
 (0)