Path: csiph.com!news.mixmin.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Thomas 'PointedEars' Lahn Newsgroups: comp.lang.javascript Subject: Re: Remembering something across pages Date: Wed, 10 Aug 2016 00:14:04 +0200 Organization: PointedEars Software (PES) Lines: 38 Message-ID: <1752454.oMNUckLgyt@PointedEars.de> References: Reply-To: Thomas 'PointedEars' Lahn Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit X-Trace: solani.org 1470780846 6959 eJwNxcEBgEAIA7CVpNCi4wDK/iOc+YQu02SICi43lf2lKhxCNB/5tG2uDzVVAAJ/F9rs7vcADq0QuQ== (9 Aug 2016 22:14:06 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Tue, 9 Aug 2016 22:14:06 +0000 (UTC) User-Agent: KNode/4.14.2 X-NNTP-Posting-Host: eJwFwQkBwDAIA0BL4wtUDnTBv4TehUFw0xHw2Nij9P59a45oGRkLuQXNNm5369SlBy1nv+YDJ9MR9Q== X-User-ID: eJwNysERwDAIA7CV4MDAOg6J9x+h1VuI8trOQiUEdV2eG4qVnDU7AhEkskN6pj+7mbHD4mFRbkMfpbfO+wBzQxXk Xref: csiph.com comp.lang.javascript:31099 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: | SVN: Twitter: @PointedEars2 | ES Matrix: Please do not cc me. / Bitte keine Kopien per E-Mail.