I would like to use the window.history.pushState() function in supporting browsers. Unfortunately I\'m getting an error on Firefox:
window.history.pushState()
TypeError
[try-catch] tag implies what you know the answer already... (is there anything more specific?) The other possibitity is to check if ( history.pushState ) history.pushState( {}, document.title, location.href );
if ( history.pushState ) history.pushState( {}, document.title, location.href );