Welcome to TalkGraphics.com
Page 3 of 3 FirstFirst 123
Results 21 to 26 of 26
  1. #21

    Default Re: Create 'BACK' button to emulate browser back button

    Thank you all again.
    I got it working now using javascript:history.go(-1)
    Utter newb question: how come javascript:history.go(-1) works?
    I know I have java components installed on my PC but don't know anything about it; is that where is gets the code for history.go from?

    I have Xara Web Designer 6, I don't think I can create custom buttons with my version.
    What version do I need to do that with?

    Re back button vs browser back button.
    When you are clicking away in a large web site I think it is cosy to keep clicking within the web pages.
    Just my personal feeling.


  2. #22
    Join Date
    Sep 2000
    Location
    Bracknell, UK
    Posts
    8,659

    Default Re: Create 'BACK' button to emulate browser back button

    re: reason for back button - fair enough.

    One good thing about the back button in the browser, is that it's always in the same place, so you can go back several pages and, if you change your mind, easily go forwards too, again just by clicking in the same place. So that might also be a consideration for positioning of in-page back buttons.

    In practice, I'm pretty happy with browser navigation buttons. Mostly I just use the site navigation options and on some sites the crumbtrail.

    Looking forward to seeing the end result!

    Paul

  3. #23
    Join Date
    Dec 2000
    Location
    Hautes Pyrénées, France
    Posts
    5,083

    Default Re: Create 'BACK' button to emulate browser back button

    Quote Originally Posted by Pegasus View Post
    I got it working now using javascript:history.go(-1)
    Odd because history.back works in FF3 and IE8

    Quote Originally Posted by Pegasus View Post
    Utter newb question: how come javascript:history.go(-1) works?
    They both work and are essentially the same when used on a Back button. history.go can be used for going back or forwards

    Quote Originally Posted by Pegasus View Post
    I know I have java components installed on my PC but don't know anything about it; is that where is gets the code for history.go from?
    No, Java and Javascript are two entirely different languages and used for entirely different things

    Quote Originally Posted by Pegasus View Post
    I have Xara Web Designer 6, I don't think I can create custom buttons with my version.
    That surprises me. I don't have WD, but the design tools are essentially the same as in DP, no?
    If someone tried to make me dig my own grave I would say No.
    They're going to kill me anyway and I'd love to die the way I lived:
    Avoiding Manual Labour.

  4. #24
    Join Date
    Dec 2000
    Location
    Hautes Pyrénées, France
    Posts
    5,083

    Default JavaScript History Object Properties and Methods

    If someone tried to make me dig my own grave I would say No.
    They're going to kill me anyway and I'd love to die the way I lived:
    Avoiding Manual Labour.

  5. #25

    Default Re: JavaScript History Object Properties and Methods

    I am getting confused now.

    I felt I could not use: <input type=button value="Back" onClick="history.go(-1)">
    because that only works in a place holder and I wanted to use a xara theme button

    javascript:history.go(-1)
    Works fine except when at the first page it loops back top teh last page

    javascript:history.back(1)
    Works fine, but is new to me, I looked over the responses a few times but could not find it
    However as I am typing now = real time, I realise it was probably in teh properties bos of the project that was included or teh picture wirth back buttons.

    Anyhow, I have settled on javascript:history.back(1) thank you for that.

    •JavaScript History Object Properties and Methods

    That is a great place to get snippets from - thank you.

    re my web site, that will probably be 6 months before ready - have a full time job, wife and son, so not much time.

  6. #26
    Join Date
    Dec 2000
    Location
    Hautes Pyrénées, France
    Posts
    5,083

    Default Re: JavaScript History Object Properties and Methods

    javascript:history.back(-1)

    not

    javascript:history.back(1)
    If someone tried to make me dig my own grave I would say No.
    They're going to kill me anyway and I'd love to die the way I lived:
    Avoiding Manual Labour.

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •