Content scripts. Check out these pages:

http://code.google.com/chrome/extensions/content_scripts.html
http://code.google.com/chrome/extensions/tabs.html#method-executeScript

- a

On Thu, Nov 26, 2009 at 11:02 AM, glfx <uberd...@gmail.com> wrote:
> Hello guys,
> I'm new to developing Chrome Extensions and to this group, so far I've
> encountered a difficulty, which I will explain now and If you can help
> with that - It will be great, should help me a lot.
>
> I can't find any documentation explaining how to interact with current
> opened website.
> Let's say right now I'm on www.google.com and this tab/window is
> currently focused (selected),
> How can access the www.google.com page code through my extension?
>
> Let's say I've included some .html file which has a javascript in it,
> I would like it alert me when I type in search field of google.com...
>
> So far I found something like that:
> " window.opener.document.getElementById
> ("content").selectedBrowser.contentDocument"
> Does the "content" ID always stays content or it changes somehow?
>
> Thanks 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 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.
>
>
>

--

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