I try to get an hash to put filter on my page, I work in JS vanilla only, actually i can't find how getting it.. It must be simple but i can't find on internet and I'm newbie.. If someone can help me, it can be a huge move for me, thank's a lot !
function lien(obj) {
alert(obj.href.hash);
}
<a href="#portrait" onclick="lien(this)" class="filters" value="portrait">#portrait</a>