将某网页的某框架内容显示在WEBBROWSER中
2006-05-07 19:34
302 查看
'下面代码可以实现将某网页的某框架内容显示在新的WEBBROWSER中.
'add two webbrowser and a commandbutton to form1:
Private Sub Command1_Click()
Dim html As String
html = WebBrowser1.Document.frames(4).Document.body.innerHTML
html = "<HTML>" & "<BODY>" & html & "</BODY>" & "</HTML>"
WebBrowser2.Navigate "about:blank"
WebBrowser2.Document.write html
End Sub
'
Private Sub Form_Load()
WebBrowser1.Navigate "http://community.csdn.net/Expert/topic/4733/4733339.xml", 0
End Sub
'add two webbrowser and a commandbutton to form1:
Private Sub Command1_Click()
Dim html As String
html = WebBrowser1.Document.frames(4).Document.body.innerHTML
html = "<HTML>" & "<BODY>" & html & "</BODY>" & "</HTML>"
WebBrowser2.Navigate "about:blank"
WebBrowser2.Document.write html
End Sub
'
Private Sub Form_Load()
WebBrowser1.Navigate "http://community.csdn.net/Expert/topic/4733/4733339.xml", 0
End Sub
相关文章推荐
- 将某网页的某框架内容显示在WEBBROWSER中
- webbrowser如何将网页内容保存为字符串以及根据字符串显示成网页
- 【JavaScript】巧用网页显示硬盘内容
- 鼠标移动到指定位置显示网页内容,鼠标移出隐藏
- selenium显示网页所有源码内容
- 菜鸟新手的知识汲取(1)网页左右导航栏左右内容显示
- 强制IE浏览器或WebBrowser控件使用指定版本显示网页
- C#将网页内容转换成图片保存到本地( webbrowser 可应用于B/S结构中)
- 强制IE浏览器或WebBrowser控件使用指定版本显示网页
- 解决在WinForm 或 WPF中使用WebBrowser来显示本地包含javascript的网页时弹出黄色警告的问题。
- 利用webBrowser获取框架内Html页面内容
- 取得WebBrowser网页内容
- 我看WINFORM 上显示 网络内容(利用web控件的方式是为了内容在网页上显示和winform管理端显示的统一。)
- problem:浏览器中显示的内容,和通过右键看到的网页源码不一样?(未解决)
- javascript网页中显示硬盘内容
- 修改网页显示内容的方法
- WebView 关于如何隐藏地址栏,用WebView 来显示网页内容
- 在网页中点击左边的连接,内容在右边显示
- Iframe标签显示目标网页中某区域内容的实现方法
- Delphi - WebBrowser载入自定义HTML内容并显示