How can I get the id of elements of any page content using chrome estention

3,574 views
Skip to first unread message

alaa hammuda

unread,
Feb 14, 2012, 2:50:28 AM2/14/12
to Chromium-extensions

I want to get the id of elements of any page content in a tab when the
mouse is clicked over any element over the page.

How can I make it using chrome extension ?

Mohamed Mansour

unread,
Feb 14, 2012, 1:22:04 PM2/14/12
to alaa hammuda, Chromium-extensions
Hi Alaa,

So you want to get the "id" of the element you mouse clicked? To do that, you would need a Content Script [1] to inject a script to that page to listen on mouse clicked. You add a mouse click event in the Content Script and once you clicked, you can do whatever you please.


Kind regards,
Mohamed Mansour
http://mohamedmansour.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-...@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.


Reply all
Reply to author
Forward
0 new messages