Prevent html opening if it is already open in another tab

I am new to this site. I created a .exe Launcher for html that opens html using google chrome in kiosk mode (full screen mode with hidden tabs and address bar).

Note. Launcher has its own copy of Chrome in the main installation directory.

My problem is that whenever a user launches Launcher, he points to the same Kiosk-Chrome, but opens it in a new tab. Since the tabs are hidden, users will not be able to return to the previous tab unless they close the new tab " ctrl + w " or go to the previous tab using " ctrl + 1 " or " ctrl + tab ".

Do I need to check at all if the same html open?

+4
source share
1 answer

This is not possible due to php, javascript or html. But for your launcher, it should be possible for the web page to open existing chrome instances, at least you should be able to read the title of existing tabs.

In addition, when your panel launches a web page, you must provide a name for the window instance (for example, the target of the href link). Perhaps your problem will be resolved if you used this option to specify some cryptic window name, but which is unique to your launcher.

+1
source

All Articles