method queryCmdValue

value queryCmdValue(string cmd);

Argumente

Zurückgegebener Wert

This method queries the value that is set for a given command. The commands available are a subset of those available to execCmd. See the list below for details.
function SyncDisplayWithDocument()
{
    var htmlBox = scene.getBoxById("myHtmlBox");
    var displayBox = scene.getBoxById("displayBox");
    if (htmlBox && displayBox)
    {
        var colorStr = htmlBox.queryCmdValue("backColor");
        if (colorStr != "")
        {
            displayBox.setAttribute("fill", colorStr);
        }
    }
}