Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hide BackButton(or least Gray Out?) (I've seen it done!)

Status
Not open for further replies.

Karl Blessing

Programmer
Feb 25, 2000
2,936
US
Hey I have a co-worker that is looking "Everywhere" to try and find out how to disable the Back Button (on both IE and NS) , or least remove the button bar somehow, but everyone keeps telling him it's not possible, which I Dont belive, because I know I've seen it, he's seen it before, and so has my CEO even. so whats the code? Karl Blessing aka kb244{fastHACK}
kblogo.jpg
 
it requires that you can send some code to modify the CLIENT registry - so it's windows only, and security issues can block your clients from using your site
the best way i can recommand is to replace entries in the history list instead of adding them - this way, clicking the back button will go to the previous site - no the previous page of your site
 
ok then

1) how do you replace registry entries for Windows for both IE and NS

2) if not the above, how do you prevent things from being placed in the history of IE/NS

all I know is our employer's want that back button gone, and without being IE-only or NS-only, and only for a small part of our application. Karl Blessing aka kb244{fastHACK}
kblogo.jpg
 
i only know how to modify registry settings for ie :-(
to prevent entries from being added to the history list, you have to (in the part of your app you want to) replace every <a href=&quot;url...&quot;> and every document.location.href=&quot;url...&quot; with : document.location.history.replace(&quot;url...&quot;)
[not fully tested, maybe it's document.history.replace in ns ... can you access the doc ? if yes, this would be better to check !!!! but i'm sure this history list exits in both browser - and what the back button does, is just going 1 url back in this list - whatever the browser !]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top