469,323 Members | 1,574 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,323 developers. It's quick & easy.

First load vs. back

Is it possible to differentiate between the followig two cases:
1. user comes to a page by clicking on a link, submitting a form or some other
(?) "regular" way, and
2. user comes to that same page by clicking browsers back button?

What I'd like to do is give focus to a text field of a form when the page is
loaded, but not when the page is "reused" by clicking on a back button. Can this
be done with javascript?
Jul 29 '05 #1
2 1620
> Is it possible to differentiate between the followig two cases:
1. user comes to a page by clicking on a link, submitting a form or some
other (?) "regular" way, and
2. user comes to that same page by clicking browsers back button?

What I'd like to do is give focus to a text field of a form when the
page is loaded, but not when the page is "reused" by clicking on a back
button. Can this be done with javascript?


Guess not. Way to go!
Not.
Aug 2 '05 #2
In article <AP******************@news.siol.net>, Igor Planinc wrote:
Is it possible to differentiate between the followig two cases:
1. user comes to a page by clicking on a link, submitting a form or some other
(?) "regular" way, and
2. user comes to that same page by clicking browsers back button?

What I'd like to do is give focus to a text field of a form when the page is
loaded, but not when the page is "reused" by clicking on a back button. Can this
be done with javascript?


if they click the back button they will have something behind their forwards
button, can you check for that.

--

Bye.
Jasen
Aug 12 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

19 posts views Thread by DotNetIsHorrible | last post: by
1 post views Thread by DKode | last post: by
11 posts views Thread by Jason | last post: by
2 posts views Thread by mollyf | last post: by
4 posts views Thread by Chris | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by Gurmeet2796 | last post: by
reply views Thread by harlem98 | last post: by
reply views Thread by listenups61195 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.