Remove specific param from url in javascript
Is there some way I can remove one specific parameter from url in javascript witho开发者_运维知识库ut reloading the page with document.location.search = newParams; ?
You can do so with HTML5 pushState, which only works in modern browsers. An alternative is to change location.hash, which does not reload the page.
精彩评论