> I know this is a little off topic, but does anyone know how to disable
> CTRL+N and F11 in IE???

I'm not sure about the CTRL+N key combination, but this script will disable
the F11 key in IE... the only catch is that you have to stop bugging the CF
community with Javascript questions and join us all over at JS-Jive where we
are dedicated to helping developers with their javascript woes. You can
subscribe by sending a blank email to
mailto:[EMAIL PROTECTED]. I invite anyone using javascript
to join. Now, on to the code....

<!--- This will disable the F11 key in IE --->
<script>
  function CheckMyKeys(){
    var key = event.keyCode;
    if (key==122){ // F11 key, do something then cancel
    return cancel();
}
// Inline cancel function
  function cancel(){
    event.cancelBubble=true;
    event.keyCode=0;
    return false
  }
}
document.onkeydown = CheckMyKeys
</script>
<!------------------- END --------------->


HTH,
Steve


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.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