Answers for "why i cant use window.location.href"

1

why i cant use window.location.href

If you are calling this function "through a submit button." 
This may be the reason why the browser does not redirect. 
It will run the code in the function and then submit the page instead 
of redirect. In this case "change the type tag of your button."
Posted by: Guest on October-19-2021

Code answers related to "why i cant use window.location.href"

Code answers related to "Javascript"

Browse Popular Code Answers by Language