|
-
Dec 12th, 2003, 10:23 AM
#1
Thread Starter
Junior Member
Disable back button on browser and also close browser???
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
-
Dec 14th, 2003, 01:39 PM
#2
I wonder how many charact
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/
-
Dec 15th, 2003, 08:02 AM
#3
Closing the browser is easy enough
Code:
<script language="javascript">
<!--
function CloseWindow() {
window.close()
}
//-->
</script>
<input type=button value="Close This Window" onClick="javascript:CloseWindow();">
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|