I have the code
window.open("http://localhost/xyz.php")
This opens the PHP file on a new tab, although the same window. I want to open this on the same tab. How do I do it.
I have tried window.open("http://localhost/xyz.php","_self")
and window.open("http://localhost/xyz.php";"_self")
but that does not work. I have also tried window.location.href
but nothing seems to work. Is there any other way?