Discussion Locked

The Back Button in Internet Explorer

0 helpful
15 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
How do I control the behaviour of the Back Button in Internet Explorer 4+? I need to be able to hardcode a URL at a certain time. This will enable me to force the application to go back to a certain page. This will not necessarily be the previous page.

15 replies

by macman

Hi,

I've passed the IEAK 4.x exam, I don't recall that such featutre is doable..
Have you ever seen it? let me know how I can assist more...

by compubear

I'm not aware of your being able to control this without editing the program itself, which is illegal, and impossible since IE4+ resides on the the client's computer. What you will have to do is BOLDLY state on your web page NOT TO USE your browsers "back" button, then put your own button on the page for them to use and hard code that button to hyperlink to the page you want them to go to.

by brandonh

Why not spawn another browser window without a toolbar? That way the users wouldn't have to worry about which button they should or shouldn't press.

Let me know if you have any questions about this.

Brandon
brandonh@imagecast.com

by rhumphreys

I think you'll find that the back button gets its info from the history. As such it is impossible to "hard code" the back button unless you hack the program itself which is illegal. You don't say if this is for your own web site or just a feature you would like to have. If this is for your own web site then add a button onto the page with the link hardcoded.

by steven.riley

I'm not 100% sure of what your trying to achieve but you could try using a javascript solution. You could open a new 'window', remove the toolbars and place your own buttons. You can use the 'history' keyword to replicate the actions of the back/forward buttons and some scripting should produce the desired effect. If you need me to expand let me know.

by wmusil

Sure it can be done. Do it with a pausing redirect from the previous page. When you click on a link instead of going to your target page it will activate a redirect, CGI perl or java. After a pause it will open the target page. when you hit back it will just go back to the redirect which will put you back where you are. There are ways to see if you've been here before and if so send you to another page alltogether. A cookie might do it. Compaq does the most basic part on their Presario web shopping site. Once your in you can't get out. If you go to their home page follow the picture link to the buy and configure the Presario 5700T. Then hit the back button. "She no work". You can of course pick COMPAQ at the top to get back to their homepage.

by dobick

Sorry, you will have to use favorites to hard core a particular page. The back and forward buttons are just that, back one page and forward one page. IE5 works a little different and takes you back to the core page you were in prior to your present core page, it has been some time since I used IE4 but I believe it did not do this.

Hope this helps,
Doug

This discussion is closed to new replies.