![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Industry Role:
Join Date: Mar 2007
Location: Arizona
Posts: 8,437
|
Javascript alert box on exit??
I have been searching high and low but can't seem to find what I am looking for. Basically I want an alert box with ok/cancel or yes/no to popup when someone exits my website. Say I were to have the alert say "Do you want 100% FREE PORN?"'' and they click ok it takes them to porn.com, but if they click cancel it just exits. Can anyone help me on this subject?? It is irritating the shit out of me. Any help would be appreciated!
![]()
__________________
Conversion Sharks - 1,000+ adult dating offers, traffic management, and consistently high payouts. We will guarantee and beat your current EPC to win your dating traffic! Skype: ConversionSharks || Email: info /@/ conversionsharks.com |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Jul 2004
Location: The Beach
Posts: 4,626
|
<body onunload="function()">
<script type="text/javascript"> function function() { alert("hello world"); } </script> I think
__________________
ICQ# 143561781 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: Jul 2004
Location: The Beach
Posts: 4,626
|
well didn't read your thread properly... you should use some dialog thing instead of alert there.
__________________
ICQ# 143561781 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Jul 2004
Location: The Beach
Posts: 4,626
|
actually when I come to think of it... the onunload event fires after the unload so you might wanna look for another event
![]() <script type="text/javascript"> function MsgOkCancel() { var fRet; fRet = confirm('Are you sure?'); if (fRet==true) { //fire unload event here. } } </script> but just consider these bumps... can't remember which event that fires before onunload.
__________________
ICQ# 143561781 |
![]() |
![]() ![]() ![]() ![]() ![]() |