window.location not work properly
===

Hi all I am navigating from one html page to another as:

    window.location = "test.html";	

In test.html I have header as:

    <script type="application/javascript">

				function redirect()
				{
					alert("inside redirect:");
					//window.location = url;
					//history.back();
					history.go(-1);
					return false;
					 
				}

			</script>
		
			<div data-role="navbar">
	            <ul>
	                
	                <li> <a href="#" data-theme="b" onclick="history.back(); return false;">Go Back</a></li>
	                <li> <a onclick="redirect()" data-icon="back" data-iconpos="notext" data-direction="reverse" class="ui-btn-left jqm-home">Back1</a></li>
	                
	            </ul>
        	</div>

But here both back buttons (Go Back and Back1) are not working. If I use `$.mobile.changePage('test.html')` to navigate between pages then both Back buttons work. Why they are not with windows.location? 

I want to develop this application for B-Grade browser which are not support ajax. Therefore I cant use `$.mobile.changePage('test.html')`.

 Any help will be appreciated. Thanks.