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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disable browser buttons 2

Status
Not open for further replies.

FRANDAZZO

Programmer
Nov 29, 2000
60
US
Hello all - question how do you disable the back and forward buttons on the ie - browser and the netscape -browser..

Also, I have been working with the "javascript:" function in my ancor tag.
example - <a href=&quot;javascript:submitForm(0)&quot;>Submit</a>

Where can I get a list of functions like the submitForm, mailto and alert to view. I know that I can call function names also that are in my client side scripts.

Thanks,

Frandazzo
 
You cannot disable the back and next button on a browser, even if you wre to open a new window that didn't have the buttons at the top, there are still several ways for the user to go forward and back. Imagine if you were to visit someone's site.

Also, you can only access the history, you cannot delete it. Imagine if you were to visit someone's site and without you knowing, they erase all your history files. I'm sure you're not trying to be that evasive, but that is the reason why.

There is a way to create a website so that when you navigate it, it doesn't create a history trail. This doesn't disable the History Buttons (Back/Forward), but it go to different pages without leaving a history trail. The function is:

location.replace('url')

EXAMPLE:
<a href=&quot;JavaScript:location.replace('&quot;>Yahoo!</a>

For a list of functions in JavaScript go to Netscapes DevEdge for a list of the the most commons functions in JavaScript. There are a few that are NS only, but for the most part it's a great resource. I use it all the time:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top