• Create To Automatically Center Popup Window


    All you need to make a pop-up in HTML is to copy the code given below and paste it where you want to give the link of pop-up.

    <!-- TWO STEPS TO INSTALL POPUP WINDOW:

       1.  Paste the first into the HEAD of your HTML document
       2.  Use the code to open the popup page on your site  -->

    <!-- STEP ONE: Copy this code into the HEAD of your HTML document  -->

    <HEAD>

    <SCRIPT LANGUAGE="JavaScript">
    <!-- Idea by:  Nic Wolfe -->
    <!-- This script and many more are available free online at -->
    <!-- The JavaScript Source!! http://javascript.internet.com -->

    <!-- Begin
    function popUp(URL) {
    day = new Date();
    id = day.getTime();
    eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=1024,height=768,left = 0,top = 0');");
    }
    // End -->
    </script>


    <!-- STEP TWO: Use the following link to open the new window -->

    <A HREF="javascript:popUp('http://tamilkavithaigal2u.blogspot.com/')">Open the Popup Window</A>

    <!-- Script Size:  0.73 KB  --> 



    CHANGES IN ABOVE CODE:

    1.Change the link http://www.devilsworkshop.org to the desired page you wants to open with your pop-up.
    2.Change the desired width and height.
    3.Change toolbar, statusbar, scrollbar e.t.c according to your requirements.
       I think that was simple enough, for any further clarification kindly drop us a comment.

    Open the Popup Window


    2 comments: