We can redirect to another page using javascript in
following ways:
1. window.location.href = "default.html";//url of the page
2. window.location.replace("default.html");//url of the page
1. window.location.href = "default.html";//url of the page
2. window.location.replace("default.html");//url of the page
Redirect to the parent
page:
1. window.parent.location.replace("default.html");//url of the page
2. window.parent.location.href="default.html"; //url of the page
1. window.parent.location.replace("default.html");//url of the page
2. window.parent.location.href="default.html"; //url of the page
No comments:
Post a Comment