i have this code
Dim doco As Object
Private Sub Form_Load()
WebBrowser1.Navigate "d:\hi.html"
Set doco = WebBrowser1.Document
Text1.Text = doco
End Sub
and i want to display it as text
like the actual source of the object
it should look like this
<html>
<head>
<script language="javascript">
function al(){
alert("hi"
}
</script>
</head>
<body onload="al()">
<h1>HI YA</h1>
</body>
</html>
Dim doco As Object
Private Sub Form_Load()
WebBrowser1.Navigate "d:\hi.html"
Set doco = WebBrowser1.Document
Text1.Text = doco
End Sub
and i want to display it as text
like the actual source of the object
it should look like this
<html>
<head>
<script language="javascript">
function al(){
alert("hi"
}
</script>
</head>
<body onload="al()">
<h1>HI YA</h1>
</body>
</html>