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 7771663
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T16:42:29+00:00 2026-06-01T16:42:29+00:00

I have a HTML form: <html> <body> <form> <textarea></textarea> <input type=button value=Submit onclick=????></input> </form>

  • 0

I have a HTML form:

<html>
<body>
<form>
<textarea></textarea>
<input type="button" value="Submit" onclick="????"></input>
</form>
<script type="text/javascript">
var code, chr = 'here';
code = chr.charCodeAt(0);
document.write("The ASCII code of " + chr +" is "+code);
</script>
</body>
</html>

I’m trying to have a text area in which user/me will put his text (a single letter) and a button which he will click to trigger this event.

Now the problem is how do I make the submit button to submit the whatever is in the text area to:

var code, chr = '`here`';

Please let me know if there is additional data required.

  • 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-06-01T16:42:30+00:00Added an answer on June 1, 2026 at 4:42 pm

    If I understand what you’re looking forL you need a function that ascii translates input and you need to call that from the button.

    I would suggest using something like the following because the calls from the button are all relative you could have 15 such forms on a page and they will all work, plus your actual translation method is kept simple and discrete.

    Although with something so simple you could just Drop it inline.

    <html>
    <body>
    <script type="text/javascript">
    function asciify(txt) {
        return = txt.charCodeAt(0);
    }
    </script>
    <form>
    <textarea name="txt_input"></textarea>
    <input type="button" value="Submit" onclick="this.form.txt_output.value = asciify(this.form.txt_input.value)"></input>
    <textarea name="txt_output"></textarea>
    </form>
    </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a HTML form containing checkboxes in the form of .. <input type=checkbox
I have simple form with a textarea and a button, and I submit the
I have a form with a text area input. I'm using JQuery to submit
My input tag started to go crazy... I have html form for input to
I have an HTML form where the user can type in any number:5, 8,
i have a textarea and two buttons like <form name=form1> <textarea name=text1> HTML Codes
I have the following Javascript to copy the user's textarea input in this iPhone
I have iframe with with form elements such as input, select textarea etc. I
I have a simple html form and some php that input the POST variables
I have used Javascript to enable or disable a button, depending on the input

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.