How to use Window Object CreatePopup in JavaScript

In this article I am going to explain about window object CreatePopup() Method in JavaScript.
  • 2641

JavaScript Window Object CreatePopup Method

JavaScript CreatePopup() method use for create pupop window. After creating pupup window when we you will click outside from pupup window then window will be close. CreatePopup() method only work in IE.






<script type="text/javascript">

    function myfun() {

        var p = window.createPopup();

        var pupup = p.document.body; = "skyblue"; = "solid black 2px";

        pupup.innerHTML = "This is the pupup window";, 100, 200, 50, document.body);






<button onclick="myfun()">click me</button>

<p>click on the button for open pop-up window and<br /> click out side screen for close</p>








You may also want to read these related articles: here
Ask Your Question 
Got a programming related question? You may want to post your question here


More Articles

© 2020 DotNetHeaven. All rights reserved.