View Single Post
Old 10-27-2006, 02:48 PM  
mortenb
Confirmed User
 
mortenb's Avatar
 
Join Date: Jul 2004
Location: Denmark ICQ: 7880009
Posts: 2,203
Basically it is a function that pops a window and set it to be behind the current window.

the lines are as follows:

function loadpopunder(){ -- this is the function declaration and name

win2=window.open(popunder,"",winfeatures) -- this is the part that pops open a new window. you need to have a variable named "popunder" with the url that the new window should open and another variable named "winfeatures" with the properties of the new window.

win2.blur() -- this line sends the new window to the background.

window.focus() -- this line makes sure that the original window is still on top





you need a closing line with a "}" to close the funtion declaration.
mortenb is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote