how do i find all "src" attributes from frame object of html document?
-
i have MSHTML::IHTMLDocument2Ptr pointer loaded with html document.there i can see all style sheets,images,iframe object. iframe object again will contain "src" attributes with source location. i want all iframe or frame objects "src" attributes from html document.... please help me
-
i have MSHTML::IHTMLDocument2Ptr pointer loaded with html document.there i can see all style sheets,images,iframe object. iframe object again will contain "src" attributes with source location. i want all iframe or frame objects "src" attributes from html document.... please help me
After you get all the frame elements using the
get_frames
method, iterate through each of the frames using theIHTMLFramesCollection2::item
method. Query theIHTMLElement
on the returnedIDispatch
pointer. Then use theIHTMLElement::getAttribute
method to get the value of thesrc
attribute.«_Superman_» _I love work. It gives me something to do between weekends.