|
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.
|