I want to open new HTML page in the same tab. I tried using window.open('home.html','_self');
, but this does not work. However, if I use window.open('home.html');
, it opens in a new window.
How can I open HTML in the same page? I have tried all of these but none of them worked:
//window.open("home.html", '_top');
//window.location.replace("home.html");
//window.open('home.html','_self');
//window.location.assign("home.html")