My current URL is: http://something.com/mobiles.php?brand=samsung
http://something.com/mobiles.php?brand=samsung
Now when a user clicks on a minimum price filter (say 300), I want my URL to become
use var urlString = window.location to get the url
var urlString = window.location
check if the url already contains a '?' with urlString.indexOf('?'), -1 means it doesnt exist.
urlString.indexOf('?')
set window.location to redirect
window.location
this is like 101 of javascript. try some search engines!