mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
9 lines
293 B
HTML
9 lines
293 B
HTML
<script>
|
|
console.error("URL.html");
|
|
var url = new URL('https://www.example.com/cats');
|
|
console.assert(url.pathname === '/cats', url.pathname);
|
|
console.assert(url.protocol === 'https:', url.protocol);
|
|
console.assert(url.hostname === 'www.example.com', url.hostname);
|
|
console.exit(0);
|
|
</script>
|