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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T00:22:44+00:00 2026-06-07T00:22:44+00:00

Is there a JavaScript way to store data that is unique to a browser

  • 0

Is there a JavaScript way to store data that is unique to a browser window, so that if the user has multiple browser windows open (all the same browser, say: Firefox), that each window will have unique data. …as opposed to a cookie, which is shared by all the windows.

My users need to open multiple windows, to the same .html page, for viewing dynamic embedded data.
Each window will, at the same time, show data dynamically from a different embedded source.

So, my JavaScript needs to be able to distinguish one window from another.

  • 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-07T00:22:47+00:00Added an answer on June 7, 2026 at 12:22 am

    The only thing I can think of is setting window.name… I haven’t even tried it, but as far as I know, it should survive page navigation like how a cookie does – I’ll be back in a sec, going to do a bit of testing…

    —

    Seemed to work OK, I’m not sure what the maximum length of window.name can be (edit: 2MB cross-browser, much more if you’re excluding Opera – http://www.thomasfrank.se/sessionvars.html). The only thing I found was in Chrome, if you visit another domain, the window.name is lost, but in other browsers, the name still there, so it’s doable, not 100% certain you should rely on it always working in the future though.

    The other way of storing state per window/tab is via the URI, but that can also be made tricky where navigation is concerned. I mean it would require a disciplined use a specific navigation mechanism to make sure it’s not accidentally lost, and it would be in plain view of your users too. The upside would be it would be bookmarkable / emailable etc, if that’s a design goal.

    —

    All these methods are going to be unsuitable for personal/sensitive/critical data, but for volatile/transient view-state, I don’t see any issue.

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

Sidebar

Related Questions

So when a user comes to my page, there is certain data that I
In rails, is there a way to execute a redirect that includes POST data?
Is there a data structure or a pattern in JavaScript that can be used
Is there a way in JavaScript to select a element of a multidimential array.
Is there a way in JavaScript or jQuery to call a function when the
Is there a way in JavaScript to compare values from one array and see
is there a way with javascript/jquery to prevent images from loading? I am building
Is there a way in JavaScript for me to tell whether a resource is
Is there no way for javascript hosted on a webserver to read a file
Is there an easy way in javascript to only escape certain ranges of control

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.