I know how to make a function that uses window.onbeforeunload=myfunction; but you are limited to displaying an alert. That is not what I want.
controlling window exit options?
3
I know how to make a function that uses window.onbeforeunload=myfunction;
but you are limited to displaying an alert. That is not what I want.
Has anyone found a way to stop the exit and run a function.
something like:
$('popup').show();
If so... you could make a greybox styled popup that showed a downsell
when the user tried to leave.
no.. you can not just do
function myfunction(){
$('popup').show();
}
the exit will still work and you function wont do anything.
You have to stop the exit from working before you can do something.
Nothing has worked... we nothing other then alerts.
I can do all kinds of alerts.
jquery .unload() also only allows for an alert.
I dont want to say.. "hey dont leave" with a dumb cancel or stay link.
I want a full downsale.
Thanks Gordon
but you are limited to displaying an alert. That is not what I want.
Has anyone found a way to stop the exit and run a function.
something like:
$('popup').show();
If so... you could make a greybox styled popup that showed a downsell
when the user tried to leave.
no.. you can not just do
function myfunction(){
$('popup').show();
}
the exit will still work and you function wont do anything.
You have to stop the exit from working before you can do something.
Nothing has worked... we nothing other then alerts.
I can do all kinds of alerts.
jquery .unload() also only allows for an alert.
I dont want to say.. "hey dont leave" with a dumb cancel or stay link.
I want a full downsale.
Thanks Gordon
- gaetanoc
- [1] reply
- frenchsquared
Next Topics on Trending Feed
-
3