Window createPopup () method
Definition and Usage
createPopup () method is used to create a pop-up window.
grammar
window.createPopup()
Browser Support
Note: Only IE browser supports createPopup () method, other browsers are not supported.
Examples
Examples
Create a pop-up window:
<! DOCTYPE html>
<Html>
<Head>
<Meta charset = "utf-8">
<Title> This tutorial (w3big.com) </ title>
<Script>
function show_popup () {
var p = window.createPopup ();
var pbody = p.document.body;
pbody.style.backgroundColor = "lime";
pbody.style.border = "solid black 1px";
pbody.innerHTML = "This is a pop-up box, click bomb outside closed!.";
p.show (150,150,200,50, document.body);
}
</ Script>
</ Head>
<Body>
<Button onclick = "show_popup ()"> to display the pop! </ Button>
<P> <b> Note: </ b> createPopup () method applies only in IE </ p>!
</ Body>
</ Html>
<Html>
<Head>
<Meta charset = "utf-8">
<Title> This tutorial (w3big.com) </ title>
<Script>
function show_popup () {
var p = window.createPopup ();
var pbody = p.document.body;
pbody.style.backgroundColor = "lime";
pbody.style.border = "solid black 1px";
pbody.innerHTML = "This is a pop-up box, click bomb outside closed!.";
p.show (150,150,200,50, document.body);
}
</ Script>
</ Head>
<Body>
<Button onclick = "show_popup ()"> to display the pop! </ Button>
<P> <b> Note: </ b> createPopup () method applies only in IE </ p>!
</ Body>
</ Html>
try it"
Window object