I want to redirect to an aspx page using javascript, but when I try this, I get the following error
uncaught type error. Property 'location'of object[object global] is not a function
How to redirect a taxi to an aspx page using javascript
function SearchContent() { var txtBoxValue = $('#txtSearch').val(); if (txtBoxValue == "") { alert("Please enter a value"); return false; } window.location("SearchResults?search="+txtBoxValue);
source share