summaryrefslogtreecommitdiffstats
path: root/dom/imptests/webapps/WebStorage/tests/submissions/Infraware/iframe/local_set_item_iframe.html
blob: bacb3b2bb5be36354eb2a99d2b34bc294d970ee9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!DOCTYPE HTML>
<html>
 <body>
	<script>
		if (('localStorage' in window) && window.localStorage !== null){
			try {
				localStorage.setItem("name", "user1");
			} catch (e) {
				parent.fail("setItem method is failed.");
			}
		} else {
			parent.fail("localStorage is not supported.");
		}	
	</script>
 </body>
</html>