Results 1 to 3 of 3

Thread: Disable back button on browser and also close browser???

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2003
    Posts
    31

    Talking 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

  2. #2
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    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/

  3. #3
    Frenzied Member Fishcake's Avatar
    Join Date
    Feb 2001
    Location
    Derby, UK
    Posts
    1,092
    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
  •  



Click Here to Expand Forum to Full Width