canuckconsulting
asked on
Insert HTML List header in windows forms WebBrowser document
I have a .Net 4 Windows Forms project with Visual Studio 2010 using c#.
I have a WebBrowser control on the form and can add an HTML list to the document using the method:
I have a WebBrowser control on the form and can add an HTML list to the document using the method:
Document.ExecCommand("InsertUnOrderedList", false, null);
What I need to do is have a list header <LH> added to this list. How can I do this?
ASKER
I'm doing this in a c# program though...creating and modifying the document on the fly. I think i need to modify it using the document object as opposed to Javascript?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
<ul style="YourStyle">
<LH>Your List Header</LH>
<script type="text/javascript">
foreach (something)
{
document.write('<li>'+some
}
</script>
</ul>