Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Closed Thread
exit window javascipt
Old 08-26-2010, 05:58 AM exit window javascipt
Junior Talker

Posts: 1
Name: gration
Trades: 0
I want to create an automatic redirect exit page to another of my websites when my visitors leave my main website.Please help me.Thank you.
__________________

Please login or register to view this content. Registration is FREE
honestreview12 is offline
View Public Profile
 
 
Register now for full access!
Old 08-26-2010, 04:25 PM Re: exit window javascipt
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
http://www.webmaster-talk.com/javasc...et-pop-up.html

http://www.webmaster-talk.com/javasc...ab-script.html

http://www.webmaster-talk.com/javasc...ck-button.html
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
View Public Profile Visit chrishirst's homepage!
 
Old 09-08-2010, 06:31 AM Re: exit window javascipt
Banned

Posts: 2
Name: Justin Kemp
Trades: 0
I have tried a lot of ways but all of them react badly with the java script I already have on the page. This works so well and is so simple.
Justin Kemp is offline
View Public Profile
 
Old 09-08-2010, 09:34 AM Re: exit window javascipt
Novice Talker

Posts: 11
Name: John Brown
Trades: 0
All you need is to handle the onUnload event

Code:
<BODY onUnload="alert('Are you sure you want to exit')">
Simply replace the alert with whatever you want to do. If you want to redirect, you can use
Code:
window.location="path";
iamjohnbrown is offline
View Public Profile
 
Closed Thread     « Reply to exit window javascipt
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.38099 seconds with 12 queries