views:

884

answers:

1

I'm using Webkit-sharp to embed Webkit into an application and I need to hook certain links to perform actions in my app rather than their normal action.

I've considered using Javascript to iterate over the anchor tags and replace the ones that match with the proper link, but I'm wondering if this is the best way. Is there a preferred way of doing this?

+2  A: 

jQuery has a lot of useful iteration features that may be able to use for that. :-) I haven't used jQuery, but find and attr look promising for your purposes.

Chris Jester-Young