I've tried to use the HTML5 window.history.pushState function, but i can't quite get it working.
This is the function:
function changeUrl() {
window.history.pushState(object, "Title", "?side=annoncer&sletid=1");
}
And this is the link which should invoke it:
<a href="javascript:void(0);" onClick="changeUrl();">
What did i do wrong?