Hey guys,
Does anyone know how to disable the back button on the browser? Also, does anyone know how to close the browser programatically? I would like to push a button and that event would close the browser.
Any help would be awesome
Patrick :)
Printable View
Hey guys,
Does anyone know how to disable the back button on the browser? Also, does anyone know how to close the browser programatically? I would like to push a button and that event would close the browser.
Any help would be awesome
Patrick :)
You can search on Google for code to do this...
If you need more help with Jscript... there are free online books and references. Note that some features may have been added depending on which browser you're target (all, just IE, or just Netscape).
http://devedge.netscape.com/library/...ipt/1.5/guide/
Closing the browser is easy enough
As for disabling the back button, i tried in the past but couldn't find a way to do it, so i ended up just making pages not load and redirecting to another page if the user didn't take the route i wanted them to take through the site.Code:<script language="javascript">
<!--
function CloseWindow() {
window.close()
}
//-->
</script>
<input type=button value="Close This Window" onClick="javascript:CloseWindow();">