Unstoppable Domains

Entering timer

Spaceship Spaceship
Watch

teclance

Established Member
Impact
1
Hi guys,

I run an autosurf system and one of the biggest problems when users surf is frame breakers. So I have inserted a small java code that will cause a window to pop up everytime the window is either refreshed, another link is clicked or a site has a frame breaker.

The window that pops up asks the user if they would like to leave the site and if they click yes it will take them to the page they clicked etc... if they click no it will take them back to the page.

Some times my users turn the surfing window on and leave the computer for a while so if a frame breaker occurs they won't be there to click "no" when the window pops up.

So I was hoping that I could put a timer into the java snippet and if there is no response within 30 seconds it would take the user back to the surfing window.

Here is the java code I use and you can try it on your site if you like.

<script language="Javascript">
<!--
// please keep these lines on when you copy the source
// made by: Nicolas - http://www.javascript-page.com

var your_message = "Do you really want to leave this page?";
var times = 0;

function onul() {
if (times == 0) {
var leave = confirm(your_message);
if (!leave) location = self.location;
times++;
}
}

//-->
</script>
<body onunload="onul()">

http://www.javascript-page.com/onunload.html


thanks a bunch!
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
0
•••
hi,

Thank you for that! It looks very close to what I need. Now I got to try and implement that into the above java snippet to close the pop up window and have the surfing window to continue.

Any one know how to do that :)
 
0
•••
Dynadot — .com Registration $8.99Dynadot — .com Registration $8.99
Appraise.net

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Live Options
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back