window.URL ( URL) . ( script , URL, , .) URL . , , URL, .
, . URL. script, ( ) window.URL, . ( , window.URL, script , var n = new URL(...); , .)
, <div>, onclick :
function() {
alert(URL);
}
, ) , document. , URL document.URL. ( document.URL .) , :
<script>
URL = 'hello' ;
document.write(URL);
</script>
<div onclick="alert(URL === document.URL)">click here</div>