Wrox Programmer Forums
|
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 20th, 2006, 10:19 AM
Authorized User
 
Join Date: Jun 2003
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default Disable F10 key in IE

I've created a Flash app in which part of it has a listener for the F10 key. This app is loaded into a popup with no menu bar or address bar. If someone presses the F10 key, the application is supposed to exit. However, because IE uses the F10 key to access the menu bar, I'm unable to acknowledge the F10 key in my Flash application. Is there a way to disable this functionality?

Chris

 
Old March 21st, 2006, 07:23 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 553
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to vinod_yadav1919 Send a message via Yahoo to vinod_yadav1919
Default

Hii Chrscote!!
Plz try this
<SCRIPT>
document.onkeydown = function ()
{
   //alert(event.keyCode)
    if (121 == event.keyCode)
    {
        event.keyCode = 0;
        alert("Disabled F10")
        return false;
    }
}
</SCRIPT>

Hope this will help you

Cheers :)

vinod





Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable the [SHIFT Key] on Startup ru1 Access 4 September 22nd, 2007 09:27 PM
Disable browser F5 Key arif007khan Javascript How-To 10 September 22nd, 2007 03:22 AM
how to disable enter key for a particular button g_vamsi_krish ASP.NET 1.0 and 1.1 Professional 1 January 19th, 2006 11:22 AM
How do I disable a key in vba for word? nesplb VB How-To 1 August 3rd, 2003 08:19 AM
How do I disable a key in vba in word? nesplb Pro VB 6 0 August 1st, 2003 01:44 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.