[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
Rating: 5 like it» Reviewed by Best Solver on In Create Simple Window Popup in WordPress