SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Mar 2003
    Location
    scarborough
    Posts
    138
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    keypress javascript

    I do not do much javascript. I want the page to store in a javascript the keypress event ... but for one generally . Not so much for some textbox.

  2. #2
    SitePoint Guru Jason__C's Avatar
    Join Date
    Oct 2009
    Location
    Racoon City
    Posts
    656
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Code JavaScript:
     
    $("#target").keypress(function() {
      alert("Handler for .keypress() called.");
    });

    That is a shell to help you get started. Do a search to give you more detailed code that meets your need.
    Chuck Norris is so tough, mosquitos ask for permission before they bite him


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •