Use this:
<a href="
whateverurl.com" target="_blank">Click me</a>
or
window.open("
whateverurl.com","_blank")
Hope this helps you.
On 5月5日, 下午9時46分, Marcos Aruj <
marcos.a...@gmail.com> wrote:
> I think you can use the setPopup() method to change the url of the popup for
> the next time it is opened:
>
>
http://code.google.com/chrome/extensions/dev/browserAction.html#metho...
>
> <
http://code.google.com/chrome/extensions/dev/browserAction.html#metho...>Hope
> it helps,
>
> Marcos.
>
> On Wed, May 5, 2010 at 4:10 PM, Arne Roomann-Kurrik <
kur...@chromium.org>wrote:
>
>
>
>
>
> > I believe that popup windows can't be redirected to a web URL. You could
> > probably achieve this effect by creating an iframe to the page you want to
> > display, though.
>
> > ~Arne
>
> > On Wed, May 5, 2010 at 1:00 PM, yanivav <
yani...@gmail.com> wrote:
>
> >> Hi,
>
> >> How can I open a web URL on the popup window of my extension button
> >> (instead of the local html file which is opened according to the
> >> manifest file)?
>
> >> I tried:
> >> <script>
> >> window.location(http://'
www.google.com');
> >> </script>
>
> >> But this isn't working...
>
> >> 10x!
>
> >> --
> >> 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...@chromium.org.
> >> To unsubscribe from this group, send email to
> >>
chromium-extensions+unsubscr...@chromium.org<
chromium-extensions%2Bunsubscr...@chromium.org>
> >> .
> > To post to this group, send email to
chromium-extensi...@chromium.org.
> > To unsubscribe from this group, send email to
> >
chromium-extensions+unsubscr...@chromium.org<
chromium-extensions%2Bunsubscr...@chromium.org>
> > .
>
marcos.a...@gmail.com
> -----
>
> --
> 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...@chromium.org.
> To unsubscribe from this group, send email to
chromium-extensions+unsubscr...@chromium.org.
> For more options, visit this group athttp://
groups.google.com/a/chromium.org/group/chromium-extensions/?hl=en.