|
-
Oct 1st, 2004, 04:06 AM
#1
Thread Starter
Member
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.
-
Oct 1st, 2004, 04:09 AM
#2
Frenzied Member
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. 
-
Oct 1st, 2004, 07:05 AM
#3
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.
-
Oct 2nd, 2004, 01:22 PM
#4
Thread Starter
Member
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.
-
Oct 2nd, 2004, 04:32 PM
#5
Frenzied Member
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. 
-
Oct 3rd, 2004, 05:05 AM
#6
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|