Click to See Complete Forum and Search --> : disabling back button


dkirthi
August 22nd, 2000, 04:58 AM
can anyone tell me how i can disable the back button in any browser,using asp,jsp or vbscript.

i will appreciate any workarounds also.

thanking you

kirthi

Johnny101
August 22nd, 2000, 11:00 AM
i'm not sure that it can be done with client side code. but if you want to limit your users from using the back button and getting something, then you can set the response.expires=0 and response.absoluteexpires = date - 1 at the top of your asp pages. that should tell the browser that this is not to be cached. then if the user clicks the back button, the browser should display a "Page has expired" message.

check up on the absoluteexpires, it's either AbsoluteExpires or ExpiresAbsolute, i can't remember exactly, sorry.

hope this helps,

John

John Pirkey
MCSD
http://www.ShallowWaterSystems.com
http://www.stlvbug.org