onclick need to route to another local page using javascript code example Example: javascript change url history.pushState({}, null, newUrl);