jQuery how do you change the address bar URL without reloading?

I think this might be considered a security issue so browsers would block JavaScript functions like this. It’s the kind of thing a phishing website would do so typically these types of access are not allowed.