First load vs. back

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Igor Planinc

    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?
  • Igor Planinc

    #2
    Re: First load vs. back

    > Is it possible to differentiate between the followig two cases:[color=blue]
    > 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?[/color]

    Guess not. Way to go!
    Not.

    Comment

    • Jasen Betts

      #3
      Re: First load vs. back

      In article <APnGe.597$cE1. 145705@news.sio l.net>, Igor Planinc wrote:[color=blue]
      > 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?[/color]

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

      --

      Bye.
      Jasen

      Comment

      Working...