From: Jim X. <jx...@cl...> - 2014-01-20 20:03:39
|
I have the following code that changes a form style HtmlForm htmlForm = getForm(); //supposed to get a HtmlForm object. ScriptableObject scriptObject = htmlForm.getScriptObject(); HTMLFormElement formElement = (HTMLFormElement)scriptObject; ComputedCSSStyleDeclaration style = formElement.getCurrentStyle(); style.setBackgroundColor("#FF0000"); style.setBorderColor("blue"); The above code doesn't work. Please help me out. Jim |