--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.
For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/?hl=en.
No it doesn't work...
Anyway, i already find a solution:
if(self==top){
// in a frame
}
Thanks anyway
-Derek
> You can check by using this script:
>
> if(window.parent){
> //it is
>
>
>
>
>
>
>
>
>
> }else{
> /it is not
> }
> On Thu, Jan 20, 2011 at 10:14 PM, Derek 囧 <derek1...@gmail.com> wrote:
> > How can a content script determine if it is in a frame (iframe) or
> > not?
>
> > Any method is ok.
>
> > Derek
>
> > --
> > 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
> > .--
> > For more options, visit this group at
> >http://groups.google.com/a/chromium.org/group/chromium-extensions/?hl=en.
>
> --
> Giovani H Ceotto
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.
For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/?hl=en.
To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.
How can a content script determine if it is in a frame (iframe) or
not?
Any method is ok.