Javascript/in Browser: Jump to anchor

PHOTO EMBED

Tue Aug 30 2022 13:50:22 GMT+0000 (UTC)

Saved by @marcopinero #javascript

function jump(hashString){
    var url = location.href;                //Save the URL without hash part.
    location.href = "#" + hashString;       //Jump to target anchor (by id).
    history.replaceState(null,null,url);    //If you don't like hashes restore url.
}
content_copyCOPY