mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-26 00:09:41 +03:00
15 lines
507 B
HTML
15 lines
507 B
HTML
<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>
|