Window.location Or Window.location.href Not Changing The Value In All Browsers Mvc Application
Current Url is http://xx.com/Home/Employee i have cancel button in my page whenvever cancel button clicked need to navigate from different action result which is located in aother
Solution 1:
found the solution by referring the following link
windows.location.href not working on Firefox3
need to add return like
<button id="btnCancel"class="btn" onclick="return cancel()">
in your markup for the page, the control that calls this function on click must return this function's value.
functioncancel() {
window.location.href = "../../About/Index";
returnfalse;
}
Post a Comment for "Window.location Or Window.location.href Not Changing The Value In All Browsers Mvc Application"