How to place pop ups in my site

multiclick

Newbie
Joined
Jan 16, 2010
Messages
24
Reaction score
10
I want to place pop ups in my site but I don't know where to place the code of the pop up. I mean when somebody clicks on SEARCH I want to be open a pop up or when somebody clicks somewhere else to be open a pop up...
Please help me?

sorry for my bad english
 
If you're using wordpress there are many plugins that do this. I can't post URLs yet, but there are many pop up generators that you can just plug your info into and it will give you the javascript to copy and paste.
 
I have the javascript but I don't know where to paste it?
 
most simple pop ups require some code between the <head> tags. Some may require some code to be placed in the head tags and in the body. Or you can place some of it in an external file and link to it. Just depends. See if you can paste all of the code here and I will play with it...
 
Add this to your website as you see below.

HTML:
<HTML> 
<HEAD> 
<TITLE>Opening a Popup Window</TITLE> 
<SCRIPT LANGUAGE=JAVASCRIPT TYPE="TEXT/JAVASCRIPT"> 
<!-- Hide script from old browsers
 
function popup(){
 
popupwindow = window.open("somewhere.html","","toolbar=no,location=no,scrollbars=no,resizable=no,width=400,height=200,left=500,top=200")	
 
}
// End hiding script from old browsers --> 
</SCRIPT> 
</HEAD> 
<BODY onLoad="popup()" onunLoad="popup()"> 
 
</BODY> 
</HTML>

Now you need to make a file named somewhere.html and put it in the public directory of the domain you are making the pop up for. I'm assuming you know how to use your FTP. This html file is your pop.
 
Last edited:
Back
Top