I’m looking for a way to check if the default browser has a tab open to a specific domain address. And if it is i like to change the URL on this tab instead of open a new tab like I’m doing right now with this code.
Process.Start(URL);
Is this even possible with general solution. To be clear I don’t want to do this in IE only and i would prefer not implementing one solution for every browser.
Edit: I have a program that will open a webpage from the program. And What I want to do is to open this page only if it’s not open already if it is open i just want to redirect it to an other place on the website. I hope this made it clearer.
In plain html, instead of using
<a href="page.html" target="_blank">link</a>, you can use a named target (target="myWindow") to reuse the same window (or tab).I’m not sure if it is possible to specify a window-name in that
Process.Start, but could you use a small extra html file in the ‘Process.Start’ that a) opens the real URL in a named window; b) closes the window that was used for this small file?