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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T07:44:55+00:00 2026-06-08T07:44:55+00:00

Possible Duplicate: Persist javascript variables across pages? how to exchange variables between two html

  • 0

Possible Duplicate:
Persist javascript variables across pages?
how to exchange variables between two html pages

I am working on creating a “quiz” that allows users to answer questions, then passes their answer and current score to the next page for the next question. I used this article and was able to get the user’s answer to pass through to the next window:

http://www.htmlgoodies.com/beyond/javascript/article.php/3471111/A-Quick-Tutorial-on-JavaScript-Variable-Passing.htm

The issue is that this passes the information through a form. Once I receive the score on the second page, I need to increment the score if the answer was correct. I can’t figure out how to pass a javascript variable with an html form.

I feel like this should be a relatively easy fix, I’m just stumped.

Any thoughts or advice would be much appreciated!
xoxo

  • 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-08T07:44:55+00:00Added an answer on June 8, 2026 at 7:44 am

    There are two obvious ways to maintain state in the browser without requiring that the server remember it between pages:

    1. Cookies

    2. localStorage

    The latter is trivial to implement, but is only available in HTML5.

    Note that neither is intended to be secure – a determined page hacker could set either to whatever value they wish.

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

Sidebar

Related Questions

Possible Duplicate: Do NSUserDefaults persist through an Update to an app in the Appstore?
Possible Duplicate: && operator in Javascript In the sample code of the ExtJS web
Possible Duplicate: PHP get all arguments as array? Within a javascript function arguments always
Possible Duplicate: thread with multiple parameters How does one thread a sub with two
Possible Duplicate: How to call a JavaScript function from PHP? I have a php
Possible Duplicate: Difference Between Equals and == in which cases equals() works exactly like
Possible Duplicate: What is the most efficient way to clone a JavaScript object? (Most
Possible Duplicate: pip install PIL -E TICKETS-1 - No JPEG/PNG support I'm working on
Possible Duplicate: Split A4 PDF page into two A5 and back again I have
Possible Duplicate: How to rename java.exe/javaw.exe process? Hi, I am working on java desktop

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.