Remove querystring from URL
Posted
by Malcolm Frexner
on Stack Overflow
See other posts from Stack Overflow
or by Malcolm Frexner
Published on 2010-03-29T20:18:31Z
Indexed on
2010/03/29
20:23 UTC
Read the original article
Hit count: 369
JavaScript
|jQuery
What is an easy way to remove the querystring from a Path in Javascript? I have seen a plugin for Jquery that uses window.location.search. I can not do that: The URL in my case is a variable that is set from AJAX.
var testURL = '/Products/List?SortDirection=dsc&Sort=price&Page=3&Page2=3&SortOrder=dsc'
© Stack Overflow or respective owner