JavaScript window location hash property of enables you to get or set the bookmark location of current web page. In HTML Hash "#" symbol is used to jump the location on same page or at particular location of other page. HTML Bookmarks functionality is created using HTML a tag with "name" attribute value. You can jump the named HTML anchor a tag by using "#" + "name" attribute value. JavaScript location hash propery also enables you to jump to other named anchor tag location on the web page or different web page. JavaScript location object belongs to JavaScript window object that allows you to access the hash property using window.location.hash. You can also access the hash property directly as location.hash.
Try the sample below to learn and practice the code functionality of JavaScript window location hash property: