Skip to content

Commit 57d250b

Browse files
Add files via upload
1 parent d6e600d commit 57d250b

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

assignment4.html

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<body>
4+
5+
<button onclick="openWin()">Open window</button>
6+
<button onclick="closeWin()">Close Window</button>
7+
8+
<script>
9+
let myWindow;
10+
11+
function openWin() {
12+
myWindow = window.open("", "", "width=800,height=500");
13+
myWindow.document.write(" Hi I am Harendra, this is my first window. Thank You")
14+
}
15+
16+
function closeWin() {
17+
myWindow.close();
18+
}
19+
</script>
20+
21+
</body>
22+
</html>

0 commit comments

Comments
 (0)