Get Querystring From Url Javascript Substring Indexof Java