I have an HTML document with an iFrame, which i am loading in a webbrowser window. My objective is once that iFrame document is loaded, capture the document contents and search for a particular line.
I am not been able to do it so far, any suggestions ?
HTML CODE
<html>
<body>
<iframe id="monitor" src="http://monitor.baseline.com"></iframe>
</body>
</html>
You can add a JavaScript function to the OnLoad event of the iFrame:
And then follow these solutions to parse your document. But be aware about cross-site-scripting restrictions. If the src of your iFrame is a totally different domain, it probably won't work.