back/previous button...

Discussion in 'HTML' started by Domestos, Jun 14, 2005.

  1. Domestos

    Domestos Guest

    Is this the best way to implement a 'previous' button? How do i deal with
    non-javascript enabled browsers? Note : I do not want to implement a link
    back to the previous page - i need it to be dynamic...

    <a href = "javascript:history.back()"><img src="gfx/back.jpg"></a>
     
    Domestos, Jun 14, 2005
    #1
    1. Advertising

  2. Domestos wrote:

    > Is this the best way to implement a 'previous' button?


    To not bother. The back button built into the browser is among the very
    first things a user will learn when being introduced to the web. As a bonus
    is works the same way on every website, so its not a new interface that has
    to be learned for each new site.

    --
    David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
    Home is where the ~/.bashrc is
     
    David Dorward, Jun 14, 2005
    #2
    1. Advertising

  3. David Dorward wrote:
    > Domestos wrote:
    >
    >
    >>Is this the best way to implement a 'previous' button?

    >
    >
    > To not bother. The back button built into the browser is among the very
    > first things a user will learn when being introduced to the web. As a bonus
    > is works the same way on every website, so its not a new interface that has
    > to be learned for each new site.
    >


    You stole my thought :)

    best
    A
     
    Animesh Kumar, Jun 15, 2005
    #3
  4. Domestos

    Domestos Guest

    "David Dorward" <> wrote in message
    news:d8nmb4$phj$2$...
    > Domestos wrote:
    >
    > > Is this the best way to implement a 'previous' button?

    >
    > To not bother. The back button built into the browser is among the very
    > first things a user will learn when being introduced to the web.


    But if I needed to ?
     
    Domestos, Jun 15, 2005
    #4
  5. Domestos

    Dan Guest

    Re: back/previous button...

    David Dorward wrote:
    > Domestos wrote:
    >
    > > Is this the best way to implement a 'previous' button?

    >
    > To not bother. The back button built into the browser is among the very
    > first things a user will learn when being introduced to the web. As a bonus
    > is works the same way on every website, so its not a new interface that has
    > to be learned for each new site.


    ....at least, on every website where the author hasn't gone out of
    his/her way to disable or otherwise mess with the action of the back
    button, such as opening up new windows with no "Back" history, and
    auto-refreshing pages so that the back button is hijacked.
    Fortunately, some of this stuff can be suppressed by user configuration
    settings on better browsers.

    --
    Dan
     
    Dan, Jun 15, 2005
    #5
  6. Domestos wrote:
    > "David Dorward" <> wrote in message
    > news:d8nmb4$phj$2$...
    >
    >>Domestos wrote:
    >>
    >>
    >>>Is this the best way to implement a 'previous' button?

    >>
    >>To not bother. The back button built into the browser is among the very
    >>first things a user will learn when being introduced to the web.

    >
    > But if I needed to ?


    Cross that bridge when you come to it, which will very likely be never.
     
    Leif K-Brooks, Jun 15, 2005
    #6
  7. Domestos

    Dan Guest

    Re: back/previous button...

    David Dorward wrote:
    > Domestos wrote:
    >
    > > Is this the best way to implement a 'previous' button?

    >
    > To not bother. The back button built into the browser is among the very
    > first things a user will learn when being introduced to the web. As a bonus
    > is works the same way on every website, so its not a new interface that has
    > to be learned for each new site.


    ....at least, on every website where the author hasn't gone out of
    his/her way to disable or otherwise mess with the action of the back
    button, such as opening up new windows with no "Back" history, and
    auto-refreshing pages so that the back button is hijacked.
    Fortunately, some of this stuff can be suppressed by user configuration
    settings on better browsers.

    --
    Dan
     
    Dan, Jun 15, 2005
    #7
  8. Domestos

    Dan Guest

    Re: back/previous button...

    Domestos wrote:
    > "David Dorward" <> wrote in message
    > news:d8nmb4$phj$2$...
    > > Domestos wrote:
    > >
    > > > Is this the best way to implement a 'previous' button?

    > >
    > > To not bother. The back button built into the browser is among the very
    > > first things a user will learn when being introduced to the web.

    >
    > But if I needed to ?


    Why, because you did something to remove or disable the regular back
    button in the user's browser? The best answer is "Don't do that."

    --
    Dan
     
    Dan, Jun 15, 2005
    #8
  9. Domestos wrote:
    > Is this the best way to implement a 'previous' button? How do i deal with
    > non-javascript enabled browsers? Note : I do not want to implement a link
    > back to the previous page - i need it to be dynamic...


    Are you running into some browsers without a back button?

    --
    -=tn=-
     
    Travis Newbury, Jun 15, 2005
    #9
  10. Domestos

    neredbojias Guest

    Without quill or qualm, Domestos quothed:

    > Is this the best way to implement a 'previous' button? How do i deal with
    > non-javascript enabled browsers? Note : I do not want to implement a link
    > back to the previous page - i need it to be dynamic...
    >
    > <a href = "javascript:history.back()"><img src="gfx/back.jpg"></a>


    You say "Note : I do not want to implement a link back to the previous
    page - i need it to be dynamic" so it sounds like a regular old link
    would suffice, no?

    --
    Neredbojias
    Contrary to popular belief, it is believable.
     
    neredbojias, Jun 15, 2005
    #10
  11. Domestos

    Arne Guest

    Once upon a time *Domestos* wrote:
    > "David Dorward" <> wrote in message
    > news:d8nmb4$phj$2$...
    >> Domestos wrote:
    >>
    >> > Is this the best way to implement a 'previous' button?

    >>
    >> To not bother. The back button built into the browser is among the very
    >> first things a user will learn when being introduced to the web.

    >
    > But if I needed to ?
    >


    Don't your browser have a back button?
    I never use sutch links on pages. And not even "close window" links
    that I see on pop up pages, I use my browsers little "X" button on the
    right top corner for that.



    --
    /Arne

    Top posters will be ignored. Quote the part you
    are replying to, no more and no less! And don't
    quote signatures, thank you.
     
    Arne, Jun 15, 2005
    #11
  12. Domestos

    Domestos Guest

    Heres the reason I needed to do it...

    I am using a form an page 1...

    on page two I use PHP to validate the form and if there is an error I wanted
    to provide the user with a link below the error message so they go back a
    page and do not lose the details they have already entered. If I provided a
    link to go back to the start of page 1, the users info is lost...

    There is probably a way to keep hold of this information in php but I wanted
    to go the quick easy route....

    What i wanted to know is ' is the javascript the best option and only option
    to use?'

    Andy Mak
     
    Domestos, Jun 15, 2005
    #12
  13. Domestos

    Grady McGhee Guest

    You should the "Close Window" link for people with screen/Braille readers
    and people who only use a keyboard. Especially for people who cannot easily
    do key combinations.


    "Arne" <> wrote in message
    news:...
    > Once upon a time *Domestos* wrote:
    >> "David Dorward" <> wrote in message
    >> news:d8nmb4$phj$2$...
    >>> Domestos wrote:
    >>>
    >>> > Is this the best way to implement a 'previous' button?
    >>>
    >>> To not bother. The back button built into the browser is among the very
    >>> first things a user will learn when being introduced to the web.

    >>
    >> But if I needed to ?
    >>

    >
    > Don't your browser have a back button?
    > I never use sutch links on pages. And not even "close window" links
    > that I see on pop up pages, I use my browsers little "X" button on the
    > right top corner for that.
    >
    >
    >
    > --
    > /Arne
    >
    > Top posters will be ignored. Quote the part you
    > are replying to, no more and no less! And don't
    > quote signatures, thank you.
     
    Grady McGhee, Jun 16, 2005
    #13
  14. Domestos wrote:
    > on page two I use PHP to validate the form and if there is an error I wanted
    > to provide the user with a link below the error message so they go back a
    > page and do not lose the details they have already entered. If I provided a
    > link to go back to the start of page 1, the users info is lost...


    <p>Please use your browser's back button to go correct these form
    validation errors.</p>

    But even better, do it the right way and have PHP redisplay the form
    with the values they entered pre-filled.
     
    Leif K-Brooks, Jun 16, 2005
    #14
  15. Domestos

    Neredbojias Guest

    With neither quill nor qualm, Domestos quothed

    > Heres the reason I needed to do it...
    >
    > I am using a form an page 1...
    >
    > on page two I use PHP to validate the form and if there is an error I wanted
    > to provide the user with a link below the error message so they go back a
    > page and do not lose the details they have already entered. If I provided a
    > link to go back to the start of page 1, the users info is lost...
    >
    > There is probably a way to keep hold of this information in php but I wanted
    > to go the quick easy route....
    >
    > What i wanted to know is ' is the javascript the best option and only option
    > to use?'


    One way I can think of is use the html "target" attribute (or js) to
    open up a new window for the checking page, but of course with all the
    pop-up blockers and quashers out there now...

    It's easy to do in js, and I don't know if there's any other non-server-
    side way besides what I mumbled already.

    --
    Neredbojias
    Contrary to popular belief, it is believable.
     
    Neredbojias, Jun 20, 2005
    #15
    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. Earl Teigrob
    Replies:
    0
    Views:
    571
    Earl Teigrob
    Dec 15, 2003
  2. sylvia sil
    Replies:
    1
    Views:
    630
    Curt_C [MVP]
    Dec 29, 2004
  3. Replies:
    2
    Views:
    14,109
    Guest
    May 6, 2005
  4. Rosanne
    Replies:
    4
    Views:
    5,426
  5. yasin
    Replies:
    1
    Views:
    606
    Karl Seguin [MVP]
    Apr 20, 2006
Loading...

Share This Page