Tag Archives: internet

How to disable key board short keys in a web page using javascript

In this Article, I’ll explain how to disable some of the Keyboard short key(s) using JavaScript. In the same way you could disable almost any key in a web page

Mainly, the solution is to use key codes for each key in a keyboard.

for e.g.,

Key code for F5  is 116

Key code for backspace is 8

Don’t worry I will tell you how you can find the key code for various keys in a key board at the end !!

also you can make use of event object like event.ctrlKeyto check if ctrlKey has been pressed

Now Let’s the see the code

You would also want backspace key to work when its placed/focused in a textbox or textarea html elements in a webpage and want to disable only when its outside of those elements. Code for this is

Now, Let’s see how we can find a Key codes for all keys in a keyboard

w3c has built a web page which helps in looking up “Key and Character Codes vs. Event Types”

The below screenshot shows when a key is pressed how the various key code, event details are populated ! This page is very handy

Now block the keys and rock the web

All the Best !!!

How to use Google app engine with my own domain www?

After spending lot of time in altering DNS entries finally managed to get my site running in Google app engine as sub domain 

UserAppId.appspot.com  as www.UserAppId.mydomain.com

************How To MAKE WORK with WWW *************

http://mydomain.com OR  http://www.mydomain.com

OK. How do I get  my domain directly by www and not as sub-domain???

Here is the answer!!!!!!

Step by step to set up

  1. Click here to go to   http://appengine.google.com ( and sign in if you’re not already logged in )
  2. Pick your google app id under ‘My applications
  3. Go to  Application Settings in the left menu> Click on Add Domain under ‘Domain setup’ and then follow steps to link your domain with google app  [ Ignore this step if you've already linked your google app with your domain name ]
  4. Click here to go to www.google.com/a/  and log in
  5. go to Dashboard -> Scroll down to end of the page and select your google app under Google App engine section
  6. userAppId settings page > choose Web address > click on Add new URL
  7. Input www and then click on Add button
  8. Using your domain hosting provider’s web interface, add a CNAME for www for your domain and point to ghs.google.com

Now you have www.mydomain.com linked to your app.