[webkit-help] Perform an action when user clicks on node with mouse

Emerick Rogul emerick at gmail.com
Mon May 17 06:53:17 PDT 2010

Julien Chaffraix writes:

> This is a correct approach. If you choose it, I would recommend doing
> everything in JavaScript by using a method to inject a custom script
> from C++ (in Chromium this is WebView::addUserScript but the naming
> varies a bit per port). You can listen to DOM mutation events on the
> document to get notified for each new image (see
> http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-MutationEvent)
> and add your click listener at that time.

Thanks for the additional information, Julien.  This sounds like the
correct approach to take, so I'll begin investigating it.


More information about the webkit-help mailing list