Hi Brian,
This little bit of code should do the trick (just place it between
your head tags) in terms of notifying them that they are leaving the
page. I am not sure about trapping closing the browser or how you'd
handle a positivie reply to receiving an email, but maybe this will
set you on your way.
<script type="text/javascript">
<!--
window.onbeforeunload = unloadMess;
function unloadMess(){
mess = "You are about to leave this page and will loose any changes
you have made.\nAre you sure you want to do so?"
return mess;
}
//-->
</script>
Cheers
G
On 9/5/05, KNOTT, Brian <[EMAIL PROTECTED]> wrote:
>
>
>
> Hi all.
>
>
>
> I have an application that is used to order goods. What I want to do is
> capture more future sales. So for example a person comes to my site to
> order some goods. They get so far into the order and then decide for
> whatever reason that they don't want to finish the order. What I want to do
> is capture the fact that they might have typed in a new location or closed
> the browser window. If they do stop the order or leave the site, I want to
> be able to ask them if I can email them in the future about this order. I
> think that it may be possible using JavaScript to pop a new window.
>
>
>
> Any other ideas ?
>
>
>
> Brian Knott
>
> -----------------------------------------------------------------------------------
>
> This e-mail is sent by Suncorp-Metway Limited ABN 66 010 831 722 or one of
> its related entities "Suncorp".
>
>
>
> Suncorp may be contacted at Level 18, 36 Wickham Terrace, Brisbane or on 13
> 11 55 or at suncorp.com.au.
>
>
>
> The content of this e-mail is the view of the sender or stated author and
> does not necessarily reflect the view of Suncorp. The content, including
> attachments, is a confidential communication between Suncorp and the
> intended recipient. If you are not the intended recipient, any use,
> interference with, disclosure or copying of this e-mail, including
> attachments, is unauthorised and expressly prohibited. If you have received
> this e-mail in error please contact the sender immediately and delete the
> e-mail and any attachments from your system.
>
>
>
> If this e-mail constitutes a commercial message of a type that you no longer
> wish to receive please reply to this e-mail by typing Unsubscribe in the
> subject line.
>
> ---
> You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to
> [EMAIL PROTECTED] Aussie Macromedia
> Developers: http://lists.daemon.com.au/
--
e: greg.stewart(a)gmail.com
w: http://gregs.tcias.co.uk/
---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/