Frameless Popup Generator
Frameless Popup Generator
Frameless Popup |
Select all (ctrl ‘A’) the text script INSIDE of this text box directly below and copy it to your clipboard (ctrl ‘C’)
<script> var windowW=214 // wide var windowX = (screen.width/2)-(windowW/2); var urlPop = “yourpage.html” // set this to true if the popup should close var autoclose = true s = “width=”+windowW+”,height=”+windowH; function openFrameless(){ </script> |
Open a your webpage that you want to use the frameless popup in a programsuch as Wordpad or Notepad and paste the above text (ctrl ‘V’) in between the HEAD Tags of the document.
The head of your webpage should now look like the code directly below. Edit the RED text only to reflect the web address and popup information you want to display: <HEAD> <script> var windowW=214 // wide var windowX = (screen.width/2)-(windowW/2); var urlPop = “yourpage.html” // set this to true if the popup should close var autoclose = true s = “width=”+windowW+”,height=”+windowH; function openFrameless(){ </script> </HEAD> |
Now you must tell the webpage how you want the frameless popup to appear. You have two choices. A. using the <body tag and having the popup load as the web page loads:
<body onload=”top.window.focus()”> Or by using a link that visitors can click on: <a href=”javascript:openFrameless()”>click here</a> |
|
After you have embedded the Head script into your page and you have added the body or link code correctly, you are ready to upload your pages!
Enjoy! |