C# Corner
Tech
News
Videos
Forums
Trainings
Books
Events
More
Interviews
Jobs
Live
Learn
Career
Members
Blogs
Challenges
Certifications
Bounties
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Pop-Up Window in Javascript
WhatsApp
Mahak Gupta
5y
6.5
k
0
1
25
Blog
pop-up window in javascript.rar
Here we use the createPopup() method which is used to create the Pop-Up Window
<html>
<head>
<script type=
"text/javascript"
>
function
Show()
{
var
x = window.createPopup();
var
y = x.document.body;
y.style.border =
"solid blue 1px"
;
y.style.backgroundColor =
"Red"
;
y.innerHTML =
"My Name is Mahak."
;
x.show(150, 150, 200, 50, document.body);
}
</script>
</head>
<body><button onclick=
"Show()"
>Show pop-up!</button></body>
</html>
People also reading
Membership not found