Browse » Home » Blogging »Create Simple Window Popup in WordPress

Create Simple Window Popup in WordPress

[thebestsovler.com] How to create window popup in wordpress ? this below is very simple code how to create window popup in wordpress!

  • Open header.php your themes
  • Copy code below between tag <head>code  here</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=1,menubar=1,resizable=0,width=1024,height=800');");
    }
    // End -->
    </script>
  • Then Put code below in tag body
    onLoad="javascript:popUp('http://www.google.com')"

    So code like this

    <body onLoad="javascript:popUp('http://www.google.com')">
  • Change www.google.com with your url Popup.  Finish
Related Posts Plugin for WordPress, Blogger...keywords : wordpress onload popupjavascript popup wordpresswordpress popup onloadwordpress javascript popuphow to create a popup window in wordpress
Rating: 5» 99% like it» Reviewed by Best Solver on In Create Simple Window Popup in WordPress

Leave a Reply