<!DOCTYPE html> | |
<html> | |
<head><title>Page with access to localStorage and sessionStorage</title> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
try | |
{ | |
if (window.localStorage && window.sessionStorage) { | |
parent.window.postMessage("access to window.localStorage and window.sessionStorage", "*"); | |
} | |
} | |
catch(e) | |
{ | |
parent.window.postMessage("no access to window.localStorage and window.sessionStorage", "*"); | |
} | |
</script> | |
</body> | |
</html> |