Say, I want to find out the color of text of an Object. Or it's display (block, none, inline) property? Is there a way to do it?
In general it is hard to get an object's runtime properties (vs. what's described in the DOM during page load), but style is an exception. For style one may get the actual computed object style that includes values assigned with JavaScript during execution, using:
SeS('objid').GetStyle();
This will return a string like:
color: blue; font-weight: bold;
As an example, for an element that is created as:
<span id=sp1 style="color: blue;">sp1</span>
and then being modified with JavaScript using:
var elem = document.getElementById("sp1");
elem.style.fontWeight = "bold";
Then using the GetStyle() property will return the computed style that includes all changes:
color: blue; font-weight: bold;