Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
helloharendra authored Nov 27, 2022
1 parent d6e600d commit 57d250b
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions assignment4.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html>
<body>

<button onclick="openWin()">Open window</button>
<button onclick="closeWin()">Close Window</button>

<script>
let myWindow;

function openWin() {
myWindow = window.open("", "", "width=800,height=500");
myWindow.document.write(" Hi I am Harendra, this is my first window. Thank You")
}

function closeWin() {
myWindow.close();
}
</script>

</body>
</html>

0 comments on commit 57d250b

Please sign in to comment.