![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have a web page that has this in it: font size="6"><a name="link1" href="www.adobe.com" onMouseDown="javascript: var zHeight=link1.style ; for(var prop in zHeight){alert('Name = ' + prop + ' value = ' + zHeight[prop])}" But when I run throgh the style array font-size = 0. How can I access the font size of text in a html document when I really do not know what the font-size is? Thanks. |
#3
| |||
| |||
|
|
In article <tmtAb.173070$ji3.60809 (AT) twister (DOT) nyroc.rr.com> in comp.infosystems.www.authoring.stylesheets, George Hester hesterloli (AT) hotmail (DOT) com> wrote: I have a web page that has this in it: font size="6"><a name="link1" href="www.adobe.com" onMouseDown="javascript: var zHeight=link1.style ; for(var prop in zHeight){alert('Name = ' + prop + ' value = ' + zHeight[prop])}" But when I run throgh the style array font-size = 0. How can I access the font size of text in a html document when I really do not know what the font-size is? Thanks. I don't see any CSS here at all. Maybe you'd do better in a Javascript group? (You might want to moderate your line lengths, also, to make your article easier to read.) -- Stan Brown, Oak Road Systems, Cortland County, New York, USA http://OakRoadSystems.com/ HTML 4.01 spec: http://www.w3.org/TR/html401/ validator: http://validator.w3.org/ CSS 2 spec: http://www.w3.org/TR/REC-CSS2/ 2.1 changes: http://www.w3.org/TR/CSS21/changes.html validator: http://jigsaw.w3.org/css-validator/ |
![]() |
| Thread Tools | |
| Display Modes | |
| |