用 webBrowser1 怎樣取得 iframe 中的流內容?
用 webBrowser1 怎樣取得 iframe 中的流內容?
設置 webBrowser1.URL="www.xxx.com/abc.html"
abc.html的內容有iframe結構
<html>
<BODY bgColor="white" leftMargin="0" topMargin="0" rightMargin="0" marginheight="0">
<center><iframe id="chatContents" src="contents.php" frameborder="0" width="100%" height="30%" scrolling="no" marginwidth="0" marginheight="0"></iframe></center>
<iframe id="reloadpage" name="reloadpage" src="reloadpage2.php?subpage=0" frameborder="0" scrolling="auto" style="width: 0px; height: 0px; border: 0px;"></iframe>
</body>
</html>
這樣我取出的 webBrowser1.DocumentStream 就不是 當前顯示的網頁內容,而是abc.html 的內容,如上
我怎樣才能取到當前顯示的內容?在設置webBrowser1.URL="www.xxx.com/abc.html"的情況下,怎樣才能取得真正的內容,即 iframe 中的 reloadpage2.php 的顯示內容?