M
maak
Hello,
To open a window in JavaScript:
window.open("adress","name","argumentes");
adress = URL
name must not be filled in.
arguments - are height, width, position ...
To prevent a window when the page is opened from another
page of you try:
example: www.xxx.yy
if(history.back().indexOf("www.xxx.yy")>-1)
{ window.open(...);
}
Or:
if(history.back().toString().indexOf("www.xxx.yy")>-1)
{ window.open(...);
}
I haven't tested this script yet.
maak
I would like to have a page popup whenver someone enters
any page on my site. This would only happen on entry
and not when navigating throughout the site. Any ideas?
To open a window in JavaScript:
window.open("adress","name","argumentes");
adress = URL
name must not be filled in.
arguments - are height, width, position ...
To prevent a window when the page is opened from another
page of you try:
example: www.xxx.yy
if(history.back().indexOf("www.xxx.yy")>-1)
{ window.open(...);
}
Or:
if(history.back().toString().indexOf("www.xxx.yy")>-1)
{ window.open(...);
}
I haven't tested this script yet.
maak