summaryrefslogtreecommitdiff
path: root/test/js/window.lately.html
blob: 227571c88019155407c6be4d316452a8954bf6c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<html>
<head>
<title>Assign window.lately</title>
<link rel="stylesheet" type="text/css" href="tst.css">
</head>
<body>
<h1>Assign window.lately</h1>
<noscript><p>Javascript is disabled</p></noscript>
<p>location: <script>document.write(location);</script>
<p>location.protocol: <script>document.write(location.protocol);</script>
<p>equivalence <script>document.write(location.protocol === 'http:');</script>
<p>assignement <script>window.lately = (location.protocol === 'http:');</script>
</body>
</html>