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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T20:49:42+00:00 2026-06-18T20:49:42+00:00

I have a webpage that uses some variables that take a few seconds to

  • 0

I have a webpage that uses some variables that take a few seconds to be calculated.
I want to create a text field where it can be shown the sum of those 2 variables, but the problem is that that text field has to delay a bit (1-2 seconds). I’ve tried with ” document.write(var1 + var2) ” inside the specific function, but when the sum is ready, the page dissapear and it shows me only the result ( I want the result to appear in the same page ). I’ve also tried with “setTimeout” and I’ve obtained the same result ( only the sum appears on a new page)

I can also use a button that makes the delay and works fine ( I know how to do that, but I dont know how to display it ), I want the result to appears on a text field on the same page, or as any text. I’ve seen buttons that converts itselfs into the result when pressed bue again I dont know how to do it
Can anyone help me please ?
Thank you !

  • 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-18T20:49:44+00:00Added an answer on June 18, 2026 at 8:49 pm

    if this is your text field.

    <input type="text" id ="myinput">
    

    insert value into it using this

    document.getElementById("myinput").value=11233;
    

    similarly for inserting text in any text field add an id and insert using getElementById

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

Sidebar

Related Questions

I have made webpage that uses Ajax to update some values without reloading the
I have a webpage that uses some hidden textarea fields - for storing some
I have a nodejs script that uses phantomjs-node to scrape a webpage. It works
I have written a program that uses qhttp to get a webpage. This works
I have a webpage that is transferring A stylesheet as a text/plain MIME type.
I have a rather small part of my webpage that uses a definition list
I have an external javascript file that I want to, upon include, write some
I have a webpage that I only want a specific group to log into.
I have a page by name BranchMap that uses GoogleMap to show some building
I have a webpage that heavily uses Javascript (AJAX requests, Google Maps API, HTML

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.