Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1068851
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T20:20:20+00:00 2026-05-16T20:20:20+00:00

I want to capture user’s activities on my textbox. Since a normal textbox won’t

  • 0

I want to capture user’s activities on my textbox. Since a normal textbox won’t give me enough information on what my user is doing currently with it, I want to start on a custom HTML text box.
For e.g.
If my user is typing
Hello world! (Say he made a typo…) I should be able to tell him that,

H e l l o w o r l e [bksp] d !

also if a user selects a text, I should be notified about it.

P.S. I’ve mentioned a custom text box inorder to be generic. If I can make use of / create something like a plugin on the already available text box or say even a javascript, it’s fine.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T20:20:21+00:00Added an answer on May 16, 2026 at 8:20 pm

    Your best bet would be to add functionality to the existing <input type="text"> using javascript.

    I don’t know how you would create your own textbox as browsers just interpret html which only contain the predefined elements in the HTML specification (apart from certain exceptions such as ActiveX).

    As a solution regarding to what you want you can capture every keypress using the onKeyUp event of your document. You can catch every keypress and display them to your liking.

    small example:

    <script type="text/javascript">
    
    document.onkeyup = KeyCheck;    
    
    function KeyCheck()
    {
       var keyID = event.keyCode;
       var keypressed;
       switch(keyID)
       {
          case 16:
          keypressed = "Shift";
          break; 
          case 17:
          keypressed  = "Ctrl";
          break;
          case 18:
          keypressed  = "Alt";
          break;
          case 19:
          keypressed = "Pause";
          break;
          case 37:
          keypressed  = "Arrow Left";
          break;
          case 38:
          keypressed  = "Arrow Up";
          break;
          case 39:
          keypressed  = "Arrow Right";
          break;
          case 40:
          keypressed  = "Arrow Down";
          break;
       }
       document.write(keypressed);
    }
    </script>
    

    for a list of all the keycodes see here.

    [Update]
    I just saw that you are also want to know when someone selects text and luckily for you there are also events that handle this:

    An <INPUT TYPE = "text"> aswell as a <TEXTAREA> have an .onSelect event which you can capture. Then you can get the selected text using the method you find on this other StackOverflow Question: How to get selected text from textbox control with javascript

    If you are working heavily in javascript I suggest you take a look at JQuery (if you haven’t already). It will definitely make your life easier.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to capture the HTTP request header fields, primarily the Referer and User-Agent,
I want to capture when a user pastes data into a text input field
I want to capture the screen in my code to get an image -
I want to capture the errors from a script into a file instead of
I'm having an issue with my regex. I want to capture <% some stuff
I have a form with a <textarea> and I want to capture any line
I want to be able to capture the exception that is thrown when a
I want to use Excel to capture survey results. I want to have a
It's not just a capture I'm looking to do here. I want to first
How can I capture user interaction on a website? How many links a user

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.