programmatically switch to tab in Google Chrome, and open URL if tab not found

google-chrome, javascript

Solution

I think Chrome extensions docs - Tabs will help you!

Just to make it clear you can't NOT access anything beyond your Domain in JavaScript because of Same origin policy.

Problem

I'd need the following functionality for Google Chrome. I didn't find a command line parameter that could help me here. - check if a URL is open in one of the Google Chrome tabs - if so, activate this tab - if not, open the URL in a new tab Any ideas how to solve this?

Original source