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

Q1010 Can I find out how large a users cache is?

You are here: irt.org | FAQ | JavaScript | Misc | Q1010 [ previous next ]

Only in Netscape Navigator 4+ and only after asking for extra privileges:

<SCRIPT LANGUAGE="JavaScript1.2"><!--
if (document.layers) {
    netscape.security.PrivilegeManager.enablePrivilege('UniversalPreferencesRead');
    alert('cache size = ' + navigator.preference('browser.cache.disk_cache_size'));
}
//--></SCRIPT>

©2018 Martin Webb