How to open a link on the same window using window.open or any other method in JavaScript.