To expand on what Critter said, try:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
        <title>Untitled</title> 
        <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
    <!--
    function killBack() {
                nextPage = new String(history.forward());
                
                if (nextPage == "undefined") {
                        //everything is cool - do nothing
                } else {
                        location.href = history.forward(); // they
probably hit the back button - send them back to where they belong!
                }
        }
    //-->
    </SCRIPT>   
</head>
<body onLoad="killBack()">
</body>
</html>

---
Billy Cravens
Web Development, EDS
[EMAIL PROTECTED]


-----Original Message-----
From: Critter [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, September 26, 2001 1:27 PM
To: CF-Talk
Subject: Re: "disable back button"


Hello Todd,

on the preceding pages.

history.forward();



-- 
Critter, MMCP
Certified ColdFusion Developer

Crit[s2k] - <CF_ChannelOP Network="Efnet" Channel="ColdFusion">
-------------------------------------------
Wednesday, September 26, 2001, 2:17:25 PM, you wrote:

TA> I have an app that I don't want people backing up in.  I've disabled

TA> the
TA> tool bar, the right and middle mouse buttons, and all keypress 
TA> combinations on the keyboard.  The only problem is that the
backspace 
TA> key will still work.  The app sees the backspace keypress event and 
TA> calls the function, but when the user clicks OK on the alert box,
the 
TA> app still backs up.  Is there any way I can interrupt that process?

TA> Todd



TA> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to