Results 1 to 6 of 6
-
29th Dec 2011, 05:23 PM #1OPBanned
leave this page/stay on page feature
sometimes we come across certain websites that ask with a popup window
that you want to stay on the site or leave this page.
could someone tell how to implement this on a WP bog?
version: 3.2.1champ_007_bond Reviewed by champ_007_bond on . leave this page/stay on page feature sometimes we come across certain websites that ask with a popup window that you want to stay on the site or leave this page. could someone tell how to implement this on a WP bog? version: 3.2.1 Rating: 5
-
29th Dec 2011, 05:29 PM #2MemberWebsite's:
wscripts.net damnlolscript.com lulzjet.comthe popup should open when the user exit the site? or when enter the site?
-
30th Dec 2011, 07:47 AM #3OPBanned
-
30th Dec 2011, 08:16 AM #4Respected MemberWebsite's:
DL4Everything.com Soft2050.inUse javascript's window.onbeforeunload event
Read about it here: https://developer.mozilla.org/en/DOM...onbeforeunload
Sample code:
PHP Code:<script type="text/javascript">
window.onbeforeunload = iamexiting;
function iamexiting(e) {
e = e || window.event;
// For IE and Firefox prior to version 4
if (e) {
e.returnValue = 'U noez close teh browser or data lost :(';
}
return 'U noez close teh browser or data lost :(';
}
</script>
-
30th Dec 2011, 08:26 AM #5MemberWebsite's:
wrzc.eu watchfreemoviez.euThanks was looking for this too.
-
30th Dec 2011, 11:42 AM #6OPBanned
i got this from Facebook
will it be same or something like this ?
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
[Hiring] Sales page/Squeeze page for my script
By t3od0r in forum Marketplace (Buy, Sell and Trade)Replies: 2Last Post: 30th Aug 2012, 11:18 PM -
[Selling] [Cheap] [HOT] Facebook Fan Page Advertising on page with 280K+ likes Heavy Traffic★
By nirmalpattara in forum Completed TransactionsReplies: 9Last Post: 3rd Feb 2012, 09:32 AM -
Stay on page, but leaving it.
By r00ts in forum Webmaster DiscussionReplies: 3Last Post: 9th Jan 2012, 10:42 AM
themaRegister - register to forums...
Version 3.45 released. Open older version (or...