First load vs. back

Discussion in 'Javascript' started by Igor Planinc, Jul 29, 2005.

  1. Igor Planinc

    Igor Planinc Guest

    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, Jul 29, 2005
    #1
    1. Advertising

  2. Igor Planinc

    Igor Planinc Guest

    > 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.
     
    Igor Planinc, Aug 2, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Joby
    Replies:
    0
    Views:
    1,646
  2. sylvia sil
    Replies:
    1
    Views:
    628
    Curt_C [MVP]
    Dec 29, 2004
  3. =?Utf-8?B?Z29yaWxsYQ==?=
    Replies:
    1
    Views:
    789
    Masudur
    May 25, 2007
  4. Author
    Replies:
    6
    Views:
    3,116
    George
    Jan 22, 2009
  5. martin

    Reading a file twice, back to back ?

    martin, Apr 16, 2006, in forum: Perl Misc
    Replies:
    16
    Views:
    163
Loading...

Share This Page