PDA

Click to See Complete Forum and Search --> : IE Object Model blues!!!


Gaurav
Oct 20th, 1999, 12:11 PM
Hi,
Using the IE obj model one can access the document being viewed, so here we go..

I have a standard HTML file with a style sheet.

<style>
h1{
font-family:Arial;
}
</style>

how can I programmatically access font-family and change its value from Arial to say Verdana thru VB? I know there's some way of doing this thru the Web Browser control, but can't seem to figure it out??

Any ideas would be greatly appreciated. Thank you for your time.


------------------
Gaurav Mahindra
gmahindra@extentia.com

CLaWRockZ
Oct 30th, 1999, 06:30 PM
the IE4/5 object model is quite full. if you are trying to change a css value with a dash in it (-) you simply omit the - in script or VB. so font-family becomes fontfamily