in JavaScript by
Q:
How to redirect a page to another page in Javascript?

1 Answer

0 votes
by
  1. Using location.href: It is the first approach to redirect page. In this, we can go back to access the original document.Syntax:window.location.href =“https://www.madanswer.com/
  2. Using location.replace: Another approach to redirect page. In this, it is not possible to navigate back to the original document by clicking on the back button as it removes the URL of the original document. Syntax: window.location.replace(" https://www.madanswer.com/;");
Click here to read more about JavaScript
Click here to read more about Insurance

Related questions

+1 vote
asked Jul 16, 2019 in JavaScript by Indian
+1 vote
asked Jul 16, 2019 in JavaScript by Indian
+1 vote
asked Jul 16, 2019 in JavaScript by Indian
+1 vote
+1 vote
+1 vote
asked Jul 16, 2019 in JavaScript by Indian
0 votes
asked Jun 16, 2019 in JAVA by reins.robin
...