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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T02:26:01+00:00 2026-06-06T02:26:01+00:00

here is a link to what im basing my code off of….but i want

  • 0

here is a link to what im basing my code off of….but i want there to be more than 2 areas to type numbers in if that makes sense…so number 1, number 2, then number 3…etc

LINK

Ive tried to copy everything down but then adding

c=Number(document.calculator.number3.value); 
d=Number(document.calculator.number4.value);

<!-- Here user will enter 3rd number. -->   
Number 3: <input type="text" name="number3">  
<!-- Here user will enter 4th number. -->   
Number 4: <input type="text" name="number4">  

and changing the result to e=a+b+c+d
but then the calculator stops functioning

any help would be appreciated

  • 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-06T02:26:04+00:00Added an answer on June 6, 2026 at 2:26 am

    Try – http://jsfiddle.net/GmDuE/

    HTML

    Number 1: <input type="text" name="number1">
    Number 2: <input type="text" name="number2">
    Number 3: <input type="text" name="number3">
    Number 4: <input type="text" name="number4">
    

    JS

    <script language="javascript" type="text/javascript">
    function multiply(){
    a=Number(document.calculator.number1.value);
    b=Number(document.calculator.number2.value);
    c=Number(document.calculator.number3.value);
    d=Number(document.calculator.number4.value);
    m=a*b*c*d;
    document.calculator.total.value=m;
    }
    
    function addition(){
    a=Number(document.calculator.number1.value);
    b=Number(document.calculator.number2.value);
    c=Number(document.calculator.number3.value);
    d=Number(document.calculator.number4.value);
    m=a+b+c+d;
    document.calculator.total.value=m;
    }
    </script>
    
    etc.
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here is link where i got a code for web-page content fetching. But i
i want to use the listview flicker"less" control found here Link directly in my
I'm learning by reading this tutorial: Link Here's the code: <?php require_once 'Zend/Loader.php'; class
In FF this border radius doesn't seem to want to work. Editable link here.
Please refer to my previous question here: Link Here Will this project type be
I am trying to build the mvc-showcase example available here link . But i
I have a jquery game that you can view here link text The game
I have a jquery game that you can view here link text The game
I came across this post here (link below) and it states that you can
The source code is here: JSfiddle $(document).ready(function () { $(#slide-link).click(function () { $(#slider).hide(slide, {

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.