summaryrefslogtreecommitdiff
path: root/test/js/location-enumerate.html
blob: 71f146adf5c78e88e48911fb1f301944a86291b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<html>
<head>
<title>location interface enumeration</title>
<link rel="stylesheet" type="text/css" href="tst.css">
</head>
<body>
<h1>location interface enumeration</h1>

<noscript><p>Javascript is disabled</p></noscript>
<script>
function output(x,y) {
    document.body.appendChild(document.createTextNode(x));
    document.body.appendChild(document.createTextNode("("));
    if (y != undefined) {
        document.body.appendChild(document.createTextNode(y.length));
    }
    document.body.appendChild(document.createTextNode(") = "));
    document.body.appendChild(document.createTextNode(y));
    document.body.appendChild(document.createElement('br'));
}

for(var key in location) {
    output(key, location[key]);
}
</script>
</body>
</html>