New course! Every coder should learn Generative AI!
Try a free lesson0
How to open a link in the same window same tab using JavaScript ?
window.open("link.html"); - this opens the link in new tab but I want to open in same tab
2 Answers
+ 2
window.open("link.html","_self");