Let's say I have this function in javascript on my webpage that loads a url from a text field with a url id:
function loadUrl()
{
var url = document.getElementById('url').value;
window.open(url, 'urlwindow');
}
If I open two tabs in my browser and open my web page on both tabs, I want both tabs to open the URL in the same window, and not two separate windows. Is it possible?
In other words, I want to customize a window open from another tab.
source
share