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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:19:50+00:00 2026-06-18T02:19:50+00:00

I have an application which open several windows (with javascript) in the same domain.

  • 0

I have an application which open several windows (with javascript) in the same domain.

I would like to share some javascript objects between these windows (an object which contains some configurations for example).

Is it possible to do this in javascript and how to do this ?

Thanks.

  • 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-18T02:19:51+00:00Added an answer on June 18, 2026 at 2:19 am

    There are 2 possibilities: local storage and session storage

    The session storage stores value for duration of the session, the value gets deleted when browser is closed and re-opened.

    // Store value
    sessionStorage.setItem('key', 'value');
    //or
    sessionStorage['key'] = value; 
    // Retrieve value
    alert(sessionStorage.getItem('key'));
    

    The local storage stores value beyond the duration of the session, the value can be retrievedeven after closing and re-opening the browser.

    // Store value
    localStorage.setItem('key', 'value');
    //or
    localStorage['key'] = value; 
    
    // Retrieve value 
    alert(localStorage.getItem('key'));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Django application, which requires several JavaScript files. In Chrome I get
I have an application which lets the user open several draggable popups. I don't
I have a 64 bit Enterprice SuSE 11 I have an application which open
I have a console application which can also open winform under certain conditions.Processing(its a
I have created an html5 application in which I open an pdf, after opening
I am developing android application in which i have to open option menu from
I have to check connection leak in my application i.e. open connections which have
I have an ASP.NET button in my application, which I want to open another
I'm currently developing a application where I will have multiple windows open using C#
I have a Silverlight application that consists of a MainWindow and several classes which

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.