Adding HTML into the Web browser control

R

Robin Tucker

I would like to add the following HTML for display in the web browser
control. I would like to do this without having to read a file ("navigate")
but rather by setting HTML directly in the control. Is this possible?


<html>
<head>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
</head>
<body>
<object classid="clsid:260AACA0-F963-101B-8955-0000C0DCD465"
id="TgControl" width="100%" height="100%" border="0" ></object>
</body>
</html>
 
H

Herfried K. Wagner [MVP]

* "Robin Tucker said:
I would like to add the following HTML for display in the web browser
control. I would like to do this without having to read a file ("navigate")
but rather by setting HTML directly in the control. Is this possible?

You can try to set the 'Document.innerHTML' property to the HTML code.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top