See other News & Comment articles from window.location.assign.
What is the difference between windowlocationassign and windowlocationreplace when both redirect to a new page
Enter the pathpage for the page that will be used in this redirect To edit once redirecting Append edit to the end of this pages url
When you want to simulate a link you should use windowlocationhref You should only use windowlocationreplace when you want to simulate an http redirect thus
Window Location windowlocation 对象在编写时可不使用 window 这个前缀 一些例子 locationhostname 返回 web 主机的域名
Hi the following working in chrome and firefox but not IE 11 Can anyone let me know if there is a suitable way to write this function that will work in