alexandram
asked on
TWebExplorer - queryCommandEnabled
I am using
WebBrowser.OleObject.Docum ent.queryC ommandEnab led('Copy' ) to
enable/disable the copy button on my web browser. The problem is that this does not work with pages with frames.
It was explained to me that because the
WebBrowser.OleObject.Docum ent is the HTML page that contains the FRAMES,
each frame contains an HTML page. So I need to query those pages. Possibly with something similar to
WebBrowser.OleObject.Docum ent.Frames (i).Docume nt.queryCo mmandEnabl ed('Copy')
where i is the frame that has focus.
The above line of code is not the exact syntax so my question is what is the
right syntax to point to the frame document for the frame that has the
focus.
Thank you.
WebBrowser.OleObject.Docum
enable/disable the copy button on my web browser. The problem is that this does not work with pages with frames.
It was explained to me that because the
WebBrowser.OleObject.Docum
each frame contains an HTML page. So I need to query those pages. Possibly with something similar to
WebBrowser.OleObject.Docum
where i is the frame that has focus.
The above line of code is not the exact syntax so my question is what is the
right syntax to point to the frame document for the frame that has the
focus.
Thank you.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER