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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T01:15:09+00:00 2026-05-16T01:15:09+00:00

Suppose a javascript holds an object on page A (www.example.com/a.html) Suppose the user clicks

  • 0

Suppose a javascript holds an object on page A (www.example.com/a.html)

Suppose the user clicks on page B (same domain) (www.example.com/a.html)

is it possible for the javascript on page B to access the object from a.html ?

I don’t want tricks to transfer the object, like posting to the webserver or adding parameters to the url.

Thanks,
E

p.s.
Just adding this ‘p.s.’ following some of the answers:
Using a cookie is not an option because the data on page A would be very very very large.

  • 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-16T01:15:10+00:00Added an answer on May 16, 2026 at 1:15 am

    There’s no direct way for page B to access the object, because the object will no longer exist once page A is unloaded. As other answers note, you can store the object somewhere, and then page B can get a copy of the original object from page A.

    A cookie is another alternative to local storage.

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

Sidebar

Related Questions

Suppose my domain name is www.hello.com How can I use jQuery/JavaScript to make the
Possible Duplicate: Pick random property from a Javascript object suppose I have a javascript
Suppose I have a master page where I have written some javascript to access
Suppose I have a javascript object like this: window.config config.UI = { opacity: {
Suppose I let the user to write a condition using Javascript, the user can
For example suppose client side I have a JavaScript function function getLocation() { var
This is a javascript security question: suppose a page finds out the screen resolution
Suppose a HTML document has a iframe. Using javascript,I want to detect ,on load
suppose i wrote my javascript in my aspx page like below <script type=text/javascript> function
suppose i am getting HTML text in my JavaScript function as var TEMP= result.data;

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.