HTML Window createPopup() Method Last Updated : 04 Oct, 2024 Comments Improve Suggest changes Like Article Like Report The HTML createPopup() method was used to create custom popup windows in Internet Explorer but is now obsolete and not supported by modern browsers due to security concerns.Syntax:window.createPopup()Example: In this example we use the createPopup() method to generate a pop-up window with custom content and styling, displaying a message when the "pop-up!" button is clicked. html <html> <head> <title> DOM createPopup() Method </title> <style> h1 { color: green; } </style> </head> <head> <script type="text/javascript"> function show_popup() { let pop = window.createPopup() let popbody = pop.document.body popbody.style.backgroundColor = "lime" popbody.style.border = "solid black 1px" popbody.innerHTML = "I am the pop-up, Click outside to close." pop.show(150, 150, 200, 50, document.body) } </script> </head> <body> <center> <h1> GeeksforGeeks </h1> <button onclick="show_popup()"> pop-up! </button> </center> </body> </html> Output:Note: The Window createPopup() Method works before Internet Explorer 11. Supported browserGoogle Chrome: NOMozilla Firefox: NOEdge: NOOpera: NOSafari: NO Comment More infoAdvertise with us Next Article HTML Window createPopup() Method V Vijay Sirra Follow Improve Article Tags : Web Technologies HTML HTML-Methods Similar Reads HTML DOM createHTMLDocument() Method The DOMImplementation createHTMLDocument() method is used to create a new HTML Document. Syntax: newDoc = document.implementation.createHTMLDocument(title); Parameters: title (Optional): It is a DOMString containing the title to be used for the new HTML document. Return Value: This function returns 1 min read JavaScript window.open() Method The Javascript window.open() method is used to open a new tab or window with the specified URL and name. It supports various parameters that can be used to specify the type and URL location of the window to be opened.Syntax:window.open(url, windowName, windowFeatures)Parameters: It has the following 3 min read HTML DOM Dialog show() Method The DOM Dialog show() method is used to show the dialog. The Dialog element is accessed by getElementById(). It is used in HTML5. While using this method, the user can interact with other elements on the page. Syntax: dialogObject.show() Example: This example shows the working of Dialog show() Metho 1 min read HTML DOM open() Method The DOM Open() method in HTML is the combination of the following three steps: Opens an output stream to collect the output.Collects output from the document.write() or document.writeln() methods.Runs the document.close to display the output written to the output stream. Syntax: document.open( MIMEt 2 min read How to create a dialog box or window in HTML ? In this article, we will create a dialog box or window using the <dialog> tag in the document. This tag is used to create popup dialog and models on a web page. This tag is new in HTML5. Syntax: <dialog open> Contents... </dialog> Example 1: html <!DOCTYPE html> <html> 1 min read Like