ouladnaouis wrote:
> i work actually on browser helper object (dll in process com server)and 
> i seek a function to get keywords meta element from a web page when 
> Documentcomplete event is fired (in invoke method).
> if the title of the page is easy to obtain (Document.title proprety), 
> keywords, however, witch is a meta tag element require more techniques 
> (scan the html code).

Call the getElementsByTagName method on an IHtmlDocument3 interface. Ask 
for any nodes named "meta" and then iterate over them for ones with 
"keywords" for their "name" attributes.

GetElementsByTagName passes back an IHtmlElementCollection. There's an 
example in C++ at the documentation for IHtmlElementCollection::item.

http://msdn2.microsoft.com/en-us/library/aa703930.aspx

-- 
Rob

Reply via email to