I am brand new to this forum and hope I am posting to the proper group... I need to build a Chrome extension that checks all open tabs looking for a tab containing a specific title. If such a tab is found I need to determine if it has the focus. If not I need to pop an alert asking if "I" should put the focus there then update with a new URL.

I am stuck on the simplest of tasks with an acute brain jam. How to construct a simple 'Chrome.tabs.query{}, function(tabs){...}

Does anyone have a sample that I can plagiarize?