Appending Query String to URL

1.6k Views Asked by At

I am taking some data from user , and then taking data from server, by a get request, sending the request parameters in query string. How should I change the URL, so that it contains the query string when it shows data for those request parameters in browser

like abc.com while showing data for param1 and param 2 should be : abc.com?param1=val1&param2=val2

$.get("/My_sevlet?asin="+val1+"&param2="+val2,function(data){addToTables(data);hideLoading();},"text");

when it shows results from server in browser still, the URL is abc.com. Thanks in advance

1

There are 1 best solutions below

3
On

If you mean what I think you do - you cannot change displayed URL in browser's window.