By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,636 Members | 1,213 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,636 IT Pros & Developers. It's quick & easy.

Confirmation Page and [Back] button

P: n/a
Hi. On my online ordering form I use browser cookies to keep track of
user items. My confirmation page reads:

"If any of this information is incorrect, please go back to the order
form and change it. We thank you for your patronage.".

Question. At what point will I be able to delete my cookies? If I
delete them before posting the online form, then they won't be available
if customers [go back] from the confirmation page.

In the confirmation page, I was thinking maybe a <body
onunload="del_cookie()">. I tried it, but it didn't seem to work. Does
the [Back] button activate onunload?
Oct 15 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Dennis Allen wrote:
Hi. On my online ordering form I use browser cookies to keep track of
user items. My confirmation page reads:

"If any of this information is incorrect, please go back to the order
form and change it. We thank you for your patronage.".

Question. At what point will I be able to delete my cookies? If I
delete them before posting the online form, then they won't be available
if customers [go back] from the confirmation page.

In the confirmation page, I was thinking maybe a <body
onunload="del_cookie()">. I tried it, but it didn't seem to work. Does
the [Back] button activate onunload?


It took about 30 seconds to add:

<body onunload="alert('hi');">

to some random page and discover that for Firefox and IE, onunload fires
when the back button is used.

--
Rob
Oct 15 '05 #2

P: n/a
RobG <rg***@iinet.net.au> wrote:
In the confirmation page, I was thinking maybe a <body
onunload="del_cookie()">. I tried it, but it didn't seem to work. Does
the [Back] button activate onunload?


It took about 30 seconds to add:

<body onunload="alert('hi');">

to some random page and discover that for Firefox and IE, onunload fires
when the back button is used.


But it doesn't in Opera, so I wouldn't rely on it.

--
Spartanicus
Oct 15 '05 #3

P: n/a
This there a way to differentiate between exiting the page via the back
button and normal transitions?

"RobG" <rg***@iinet.net.au> wrote in message
news:43***********************@per-qv1-newsreader-01.iinet.net.au...
Dennis Allen wrote:
Hi. On my online ordering form I use browser cookies to keep track
of user items. My confirmation page reads:

"If any of this information is incorrect, please go back to the order
form and change it. We thank you for your patronage.".

Question. At what point will I be able to delete my cookies? If I
delete them before posting the online form, then they won't be
available if customers [go back] from the confirmation page.

In the confirmation page, I was thinking maybe a <body
onunload="del_cookie()">. I tried it, but it didn't seem to work.
Does the [Back] button activate onunload?


It took about 30 seconds to add:

<body onunload="alert('hi');">

to some random page and discover that for Firefox and IE, onunload
fires when the back button is used.

--
Rob

Oct 16 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.