Disabling the forward and back buttons in IE

G

Guest

I use an application that is a database (MS SQL) with a web front-end (.net).
It is a standalone on notebooks and uses IIS also. I need to disable the
forward and back buttons in IE to force users not to use them. They should
use the navigation buttons in the application itself. If they do it
"disconnects" the DB from the IIS and requires a restart of IIS.

We use a web front-end on the notebooks so the stand alone looks just like
the internet version of the DB.
--
 
J

Jon Kennedy

You really can't disable the back button in IE, but you can frustrate it
using JavaScript:
http://www.htmlgoodies.com/tutorials/buttons/article.php/3478911

Not sure about this one, but says it can disable both back and forward:
http://www.js-examples.com/javascript/?id=967

Other methods: http://www.irt.org/script/311.htm
I would choose to open the application in a window sans the IE toolbar, so
the buttons aren't there to begin with. However, a right click is still
available, but that can be suppressed using scripting as well.
http://www.dynamicdrive.com/dynamicindex9/noright.htm
http://javascript.internet.com/page-details/no-right-click.html

For more information on this oft-ask question, Google "javascript disable
back button", or post this issue to one of the scripting newsgroups:
http://msdn.microsoft.com/newsgroup...rosoft.public.scripting.jscript&lang=en&cr=US
http://msdn.microsoft.com/newsgroup...osoft.public.scripting.vbscript&lang=en&cr=US
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top