Advertisement
Advertisement
| 08.19.2008 at 11:53PM PDT, ID: 23662186 | Points: 500 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: |
// Code to get the text selected by the user. selctedtext = ole_browser.object.document.selection.createRange().htmltext string lcHtml,lcNew // Check the ready state of the browser. Else the //ole_browser.object.Document might not be available as the browser // runs in the different thread DO WHILE ole_browser.object.ReadyState <> 4 Sleep(100) loop //Try to get the html text of entire html document. lcHtml = ole_browser.object.Document.DocumentElement.outerhtml |