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:
Leave a Comment
All fields are required. Your email address will not be published.
Comments(10)
best online earning app in pakistan
11/21/2024 5:03:13 AMThomasnap
11/20/2024 11:26:00 AMMassoaLgor
11/19/2024 8:05:46 PMGregoryDic
11/19/2024 2:37:24 PMRonaldoriva
11/18/2024 10:39:54 PMJamesnab
11/18/2024 1:19:25 PMRobertNob
11/18/2024 9:41:17 AMArlenGaick
11/17/2024 8:13:59 PMHairypussypix
11/17/2024 5:02:25 PMHealthkix
11/17/2024 11:05:13 AM