Old 30-08-2005, 19:56   #1 (permalink)
EMartin
Registered User
 
Join Date: Aug 2005
Location: Liverpool, NY
Posts: 1
Send a message via AIM to EMartin
POP up window help

Hello to all, I am need of help with a pop up window script for my url. Below is a script I found to get started. I am new to javascript so bear with me. Where exactly does the code go in the html?

var newwindow;
function poptastic(url)
{
newwindow=window.open(url,'name','height=400,width =200');
if (window.focus) {newwindow.focus()}
}
<a href="javascript:poptastic('poppedexample.html');" >Pop it</a>
  Reply With Quote
Old 31-08-2005, 03:36   #2 (permalink)
emil
dt immigrant
 
emil's Avatar
 
Join Date: Nov 2004
Location: Bucharest - Romania
Posts: 7,482
Send a message via ICQ to emil Send a message via MSN to emil Send a message via Yahoo to emil Send a message via Skype™ to emil
  Reply With Quote
Old 31-08-2005, 05:11   #3 (permalink)
d*d
Moderator
 
d*d's Avatar
 
Join Date: Oct 2004
Location: Bristol
Posts: 3,394
New to html as well? the html part in the example is here <a href="javascript:poptastic('poppedexample.html');" >Pop it</a> put that where you want your link
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8