1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

ASCII Value

Discussion in 'JavaScript' started by vijaykoul, Feb 17, 2005.

  1. #1
    Can any body plz tell me how to get the ASCII Value of Backspace Key.
    Or if anybody knows the ascii value plz. let me know

    thanks in advance
     
    vijaykoul, Feb 17, 2005 IP
  2. respree

    respree Peon

    Messages:
    33
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    respree, Feb 17, 2005 IP
  3. vijaykoul

    vijaykoul Guest

    Messages:
    43
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Dear,
    i tried to use that ascii value earlier also, but it has no effect. It is not working. can u plz tell me how can we determine the ascii value of backspace in Javascript.
     
    vijaykoul, Feb 18, 2005 IP
  4. frud0

    frud0 Peon

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    What exactly are you trying to do here? Restrict a user from using the backspace key? (Just a wild guess dont flame me :-I)
     
    frud0, Feb 20, 2005 IP
  5. nullbit

    nullbit Peon

    Messages:
    489
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #5
    The ACSII value for backspace is always 0x08 (that's in hexadecimal), it doesn't matter what language it's used in, but perhaps you are using the wrong base system for JavaScript?
     
    nullbit, Feb 21, 2005 IP
  6. frud0

    frud0 Peon

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    0x07 is for a beep... its 0x08
     
    frud0, Feb 21, 2005 IP
  7. nullbit

    nullbit Peon

    Messages:
    489
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #7
    OK, but my point was is it's still the same no matter what language you use.

    Anyway, I said 0x08.
     
    nullbit, Feb 21, 2005 IP
  8. frud0

    frud0 Peon

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    No offense meant...
     
    frud0, Feb 22, 2005 IP
  9. nullbit

    nullbit Peon

    Messages:
    489
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Heh. Sorry, I was being an a**hole
     
    nullbit, Feb 22, 2005 IP