Successfully added
Code Snippets
by Patrik
Change URL in Browser Address Bar
The following script will change the URL in the browser address bar. This includes updating the title and the link.
<script type="text/javascript">
function ChangeUrl(title, url) {
if (typeof (history.pushState) != "undefined") {
var obj = { Title: title, Url: url };
history.pushState(obj, obj.Title, obj.Url);
} else {
alert("Browser does not support HTML5.");
}
}
ChangeUrl("Title", "Link");
</script>
Referenced in:
Comments(10)
ErnestBum
11/29/2024 4:05:15 AMPeterFlice
11/28/2024 9:37:28 PMVictorIncom
11/28/2024 2:57:47 PMLisaSpoms
11/28/2024 1:07:49 PMKerifat
11/28/2024 12:15:26 AMShawnsoarl
11/27/2024 7:57:00 PMAbrahamdab
11/27/2024 2:12:16 PMValeron83Duall
11/27/2024 12:33:58 PMBrucejaw
11/26/2024 10:28:19 PMMassoaLgor
11/26/2024 9:59:58 AM