I want to navigate from page1.html to page2.html and at the same time adding querystring in URL using javascript.
I tried:
window.location.href = 'page2.html?uname=mustafa';
It does navigate to page2.html but "?uname=mustafa" is not added in URL. So am unable to parse querystring on page2. How can I achieve it?
window.location = 'page2.html?uname=mustafa';