Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q1344 How can I persist data through a page reload/resize?

You are here: irt.org | FAQ | JavaScript | Window | Q1344 [ previous next ]

The following will work on Netscape Navigator 4.x, but not 3.x or 5.x:

<script language="JavaScript"><!--
var retrievedvariable;

if (navigator.storedvariable) {
    var retrievedvariable = navigator.storedvariable;
}

// later on...

navigator.storedvariable = 'Hello World';
//--></script>

©2018 Martin Webb