473,406 Members | 2,956 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

javascript:disable key strokes

1
i have been tryin to program(javascript) to disable the following keystroke combinations
CTRL+O or CTRL+L Go to a new location (O = 79 L = 76)
CTRL+S Save the current page ( S = 83)
CTRL+E Open Search in Explorer bar (E = 69)
CTRL+I Open Favorites in Explorer bar (I = 73)
CTRL+H Open History in Explorer bar (H=72)
CTRL+ click In History or Favorites bars, open multiple


CTRL+LEFT ARROW When in the Address bar, move the cursor left to the next logical break (. or /) (LEFT =37)
CTRL+RIGHT ARROW When in the Address bar, move the cursor right to the next logical break (. or /)(RGT = 39)
CTRL+ENTER Add "www." to the beginning and ".com" to the end of the text typed in the Address bar (ENTER= 13)
CTRL+D Add the current page to your favorites (D = 68)



ALT+D Select the text in the Address bar (alt=18,D=68)
ALT+HOME Go to your Home page (ALT= 18,HOME= 36)

SHIFT+F10 Display a shortcut menu for a link (shift = 16 , f10 = 121)
folders


F4 Display the Address bar history (F4= 115)
F11 Toggle between Full Screen and regular view of


wherein i have managed to disable the ones NOT in bold
now the ones in BOLD seem to have the conrol to address bar....or out of the page
CAN NEBDY HELP????????
Apr 27 '06 #1
3 11951
poptop
1
i have been tryin to program(javascript) to disable the following keystroke combinations
CTRL+O or CTRL+L Go to a new location (O = 79 L = 76)
CTRL+S Save the current page ( S = 83)
CTRL+E Open Search in Explorer bar (E = 69)
CTRL+I Open Favorites in Explorer bar (I = 73)
CTRL+H Open History in Explorer bar (H=72)
CTRL+ click In History or Favorites bars, open multiple


CTRL+LEFT ARROW When in the Address bar, move the cursor left to the next logical break (. or /) (LEFT =37)
CTRL+RIGHT ARROW When in the Address bar, move the cursor right to the next logical break (. or /)(RGT = 39)
CTRL+ENTER Add "www." to the beginning and ".com" to the end of the text typed in the Address bar (ENTER= 13)
CTRL+D Add the current page to your favorites (D = 68)



ALT+D Select the text in the Address bar (alt=18,D=68)
ALT+HOME Go to your Home page (ALT= 18,HOME= 36)

SHIFT+F10 Display a shortcut menu for a link (shift = 16 , f10 = 121)
folders


F4 Display the Address bar history (F4= 115)
F11 Toggle between Full Screen and regular view of


wherein i have managed to disable the ones NOT in bold
now the ones in BOLD seem to have the conrol to address bar....or out of the page
CAN NEBDY HELP????????
Hi there,
IMHO, Javascript operates on the client side and only on the objects contained in the DOM. The ADDRESS bar is not part of the DOM object model. It is part of the browser object model and as such will not be affected by javascript key events. I suppose you could write some sort of add-in to control the address bar text. Seems kind of intrusive though. Who'd want that?
Jul 31 '07 #2
Hi. Sorry, I don't have any answers to your questions at the moment. I was wondering if I could get your solution to disabling the CTRL+S Save the current page ( S = 83) option, plus any of the others you've figured out? I know, you're gettin' nothin' out of this. :o)

Thanks.
Jul 28 '08 #3
acoder
16,027 Expert Mod 8TB
Welcome to Bytes!

To disable key strokes, return false when detecting them on the key events, e.g. onkeypress/down.
Jul 29 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Dennis Allen | last post by:
Hi. What's the best way to display an image, disabling the user's ability to right-click on it? I believe you have to use <body oncontextmenu="return false">. Would the following work? var...
4
by: Quatney | last post by:
Okay, I'm going nuts here. I know this is VERY easy and I shouldn't have problems with this, but I can't seem to figure out what I want to do. I have a form, with two drop down boxes. I want...
1
by: Daren Hawes | last post by:
Hi, I have a ASP.NET 1.1 page that in top corner has a login box & button. Then a large form. Users can fill out the form and press enter, but it actually submits the login not the one I...
4
by: Patrick Flaherty | last post by:
Hi, Experienced programmer but new to PHP. Moreover I'm to use PHP with Xoops on top (this adds object orientation?). I don't seem to find a xoops Usenet group? Whatever the case (and...
5
by: Morten Snedker | last post by:
I'm not that great at reading javascripts. Instead of doing nothing I'd like to return a Tab-character, if Enter occurs: <script language="javascript" type="text/javascript" > //disable...
4
by: pythoNewbie | last post by:
Hi guys I have 2 javascript functions, First I include which does swap images whenever I pass the mouse over a certain image <script language="JavaScript" type="text/JavaScript"...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.