Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<body>
<h1>The Window Location Object</h1>
<h2>The hash Property</h2>
<p><a id="w3s" href="/js/js_es6.asp#mark_array_from">JavaScript 2015 Array.from()</a><p>
<p id="demo"></p>
<script>
let url = document.getElementById("w3s");
document.getElementById("demo").innerHTML = "The anchor portion of the URL is: " + url.hash;
</script>
</body>
</html>