The tab api has a "create" method as you have seen:
http://code.google.com/chrome/extensions/tabs.html#method-create

<http://code.google.com/chrome/extensions/tabs.html#method-create>One of the
parameters is "index", you can use that index to position that tab anywhere
in that window. So once you open a new link, you get its tab's index from
the tab object, and you increment 1. That value gets passed into the "index"
of the createProperties for chrome.tabs.create.

-Mohamed Mansour


On Fri, Jan 1, 2010 at 8:56 AM, ionut.bilica <ionut.bil...@gmail.com> wrote:

> In Chrome, when opening a link in a new tab, it is positioned after
> the last tab created to open a link from the current tab.
> How do I simulate this with chrome.tabs.create?
>
> Thanks
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Chromium-extensions" group.
> To post to this group, send email to chromium-extensi...@googlegroups.com.
> To unsubscribe from this group, send email to
> chromium-extensions+unsubscr...@googlegroups.com<chromium-extensions%2bunsubscr...@googlegroups.com>
> .
> 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 chromium-extensi...@googlegroups.com.
To unsubscribe from this group, send email to 
chromium-extensions+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/chromium-extensions?hl=en.


Reply via email to