Awesome, thanks!

On Dec 21, 10:50 am, Mohamed Mansour <[email protected]> wrote:
> Hi Robert,
>
> Please note, your syntax, the argument requires javascript object
> properties:http://code.google.com/chrome/extensions/tabs.html#method-create
>
> <http://code.google.com/chrome/extensions/tabs.html#method-create>Therefore,
> you would have to do something like this:
>
> >   chrome.tabs.create({url:"http://www.google.com"});
>
> -Mohamed Mansour
>
>
>
> On Sat, Dec 19, 2009 at 12:26 AM, rc <[email protected]> wrote:
> > I am attempting to just load a new tab. I have the "tabs" and
> > "*.google.com" permissions in the manifest file. I created a simple
> > popup.htm file with the following code, I just want to know how to
> > execute the chrome call correctly.
>
> > <html>
> > <head>
> > <style>
> > body {
> >  min-width:350px;
> >  overflow-x:hidden;
> > }
> > </style>
> > <script>
> > function addTab() {
> > chrome.tabs.create(url("http://www.google.com";));
> > }
> > </script>
> > </head>
> > <body>
> > <a href="javascript:addTab();">google</a>
> > </body>
> > </html>
>
> > --
>
> > 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]<chromium-extensions%2Bunsu 
> > [email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/chromium-extensions?hl=en.

--

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.


Reply via email to