All these open in the same window/browser
WITH QUERY STRING
-----------------------------------------
window.location.href = '/listings/listings_search.asp?strSearch=' + document.getElementById('txtSearch').value;
window.location.href = '/listings/listings_search.asp?strSearch=<%=variablename%>';
WITHOUT QUERY STRING
---------------------------------------
window.location.href='forgot_password.asp';
GO TO PREVIOUS PAGE
-----------------------------------------------
window.location.href = '/';
WITH QUERY STRING
-----------------------------------------
window.location.href = '/listings/listings_search.asp?strSearch=' + document.getElementById('txtSearch').value;
window.location.href = '/listings/listings_search.asp?strSearch=<%=variablename%>';
WITHOUT QUERY STRING
---------------------------------------
window.location.href='forgot_password.asp';
GO TO PREVIOUS PAGE
-----------------------------------------------
window.location.href = '/';