M
Matko
Hi dear script people,
DHTML's DOM document.getElementById("id").attributes gives me array of
HTML attributes written inside .html document.
For next snippet i get array of length 1 with attribute name "id" and
attribute value "box1":
<div id=box1>
<p>Paragraf inside a div tag. Paragraf inside a div tag. Paragraf inside a
div tag.</p>
Text inside a div tag. Text inside a div tag. Text inside a div tag.
</div>
How could i get atribute values defined in CSS file (e.g. width and
height)?
#box1 {
position:absolute;
left:200px;
top:450px;
height:50px;
max-width:50px;
background: #309;
}
Regards,
Matko
DHTML's DOM document.getElementById("id").attributes gives me array of
HTML attributes written inside .html document.
For next snippet i get array of length 1 with attribute name "id" and
attribute value "box1":
<div id=box1>
<p>Paragraf inside a div tag. Paragraf inside a div tag. Paragraf inside a
div tag.</p>
Text inside a div tag. Text inside a div tag. Text inside a div tag.
</div>
How could i get atribute values defined in CSS file (e.g. width and
height)?
#box1 {
position:absolute;
left:200px;
top:450px;
height:50px;
max-width:50px;
background: #309;
}
Regards,
Matko