Results 1 to 6 of 6

Thread: Some browser functions required

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2002
    Posts
    61

    Some browser functions required

    I'm creating a toolbar in my webpage using Javascript. Buttons will use onclick="xxxxx" event handler.

    Can someone please tell me which functions I use to move back a page and to move forward ? I want the site visitor to use my buttons instead of the browser's buttons. Also, is there a function I can put in a button so it stops loading a page, acting like the browser's "stop" button?

    Thanks.

  2. #2
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090
    Why are you doing this? What's wrong with the browsers buttons?

    Well, I guess you have your reasons, here's a link to read about using the histroy, which you'll need for going back and forth:
    http://www.comptechdoc.org/independe...vahistory.html

    I don't think the stop funcion can be done at all. JavaScript has no way to stop loading images etc. so I have no clue how it could be done.
    Have I helped you? Please Rate my posts.

  3. #3
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    history.go(-1) to go back, history.go(1) to go forward, and Acidic is absolutely right in all points: you can't implement stop, you can't prevent the user from using his own buttons should he really want to and it doesn't make one iota of sense anyway.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  4. #4

    Thread Starter
    Member
    Join Date
    Feb 2002
    Posts
    61
    The reason why I'm getting rid of the browser buttons is because my pages run inside a pop-up window. The browser's toolbar, escially when the user has additional toolbars installed (eg Google, etc) uses up too much spave and this disturbs the layout of my page. That's why I'm getting rid of the browser's toolabar and just inserting my own buttons for selected toolbar functions. If anyone can tell me a way of selecting which buttons to be visible in the browser's toolbar, to save space, that's another option.

  5. #5
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090
    As a web designer you should have no right to change the visitors interface. There has already been numerous discussions about this. There is no way you can hide only certain buttons.

    I strongly, suggest you redisign your site so that the stadards buttons will work. I have a gut feeling that your page won't work in many browsers other than IE. So I suggest you change it to something that will work or you will kill about 25% of your visitors (and thankfully that percatange is growing).
    Have I helped you? Please Rate my posts.

  6. #6
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Here's a simple suggestion: don't run the page in a pop-up. There's zero reason to do so.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

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



Click Here to Expand Forum to Full Width