YouTip LogoYouTip

Met Win Createpopup

# Window createPopup() Method [![Image 8: Window Object Reference](#) Window Object](#) * * * ## Definition and Usage The createPopup() method is used to create a popup window. ## Syntax window.createPopup() * * * ## Browser Support ![Image 9: Internet Explorer](#)![Image 10: Firefox](#)![Image 11: Opera](#)![Image 12: Google Chrome](#)![Image 13: Safari](#) **Note:** Only the IE browser supports the createPopup() method. Other browsers do not support it. * * * ## Example ## Example Create a popup window: 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 popup! Click outside the popup to close."; p.show(150,150,200,50,document.body); }

Note: The createPopup() method only works in IE!

[Try it yourself Β»](#) * * Window Object](#)
← Met Win FocusProp Win Closed β†’