the problem is... extensions can't use "alert" :)
Daniele S.
On Fri, Sep 4, 2009 at 11:03 AM, PG <[email protected]> wrote:
>
> I wrote a toolstrip like this:
>
> <script>
> function showURL() {
> chrome.tabs.getSelected( null , function(tab) { alert
> (tab.url); } );
> }
> </script>
>
> <div class="toolstrip-button" onclick="showURL();">
> <span>Show Current Tab URL</span>
> </div>
>
> And it's not working. Can anyone tell me where the problem is?
> If I change the chrome.tabs.getSelected() into chrome.tabs.create()
> then it works fine.
> Thank in advance.
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Chromium-extensions" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/chromium-extensions?hl=en
-~----------~----~----~----~------~----~------~--~---