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¶m2=val2
$.get("/My_sevlet?asin="+val1+"¶m2="+val2,function(data){addToTables(data);hideLoading();},"text");
when it shows results from server in browser still, the URL is abc.com. Thanks in advance
If you mean what I think you do - you cannot change displayed URL in browser's window.