Internet Explorer 5 Demos : RuntimeStyle Property

Description This sample demonstrates the runtimeStyle object, new in Internet Explorer 5. This object can be set via script to any valid value for the object model, but is not persisted as an attribute inside of the element. By contrast, the style object only exposes style attributes set directly on the element. More Details In the demo, use the input buttons to change the runtimeStyle of the DIV, aDiv. The style, runtimeStyle, and currentStyle of the element are displayed in the sample's table. Browser/Platform Compatibility This new feature of Dynamic HTML is supported in Microsoft Internet Explorer 5 on the Win32 and UNIX platforms. Usage The runtimeStyle object uses the same syntax as the style object. See documentation for a list of supported attributes.

Complete Article

Hide comments


  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.