Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #31099
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: Remembering something across pages |
| Date | 2016-08-10 00:14 +0200 |
| Organization | PointedEars Software (PES) |
| Message-ID | <1752454.oMNUckLgyt@PointedEars.de> (permalink) |
| References | <memory-20160809224912@ram.dialup.fu-berlin.de> |
Stefan Ram wrote: > A person has two web pages on the same server under his control: > > A.html and > B.html Those are HTML documents, not “web pages”. And it does not matter much if they can be accessed on the same server. What does matter is that they can be accessed using the same protocol scheme, host, second-level domain and port, or that CORS has been set up appropriately and is supported by the accessing user agent. > . A.html contains a link to B.html (albeit via a redirector service). > > Can a script from the page A.html store some information (a > string or an object would be fine) so that a script on page > B.html can then retrieve this information? Yes. > PS: I just did a web search and found > > developer.mozilla.org/en-US/docs/Web/API/Window/sessionStorage > > . Ok, this sounds fine. Is this my way to go? Not necessarily. > Was there an easy alternative to do this before HTML5? Yes. -- PointedEars FAQ: <http://PointedEars.de/faq> | SVN: <http://PointedEars.de/wsvn/> Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-matrix> Please do not cc me. / Bitte keine Kopien per E-Mail.
Back to comp.lang.javascript | Previous | Next | Find similar | Unroll thread
Re: Remembering something across pages Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-08-10 00:14 +0200
csiph-web