with the integration of .net framework, silverlight also allows html-managed code interaction, which enables the manipulation of html dom elements from managed code, and permits javascript code to call managed code and use objects instantiated by managed code. silverlight encloses javascript objects and dom elements in managed wrappers to make them available from managed code. while there is no provision for calling javascript code directly in the 1.1 alpha release, managed-code events can fire javascript handlers. a silverlight instance does not need to have a ui component in order to manipulate the html dom from managed code. it is done by creating a xaml "canvas" with both width and height set to zero, and using its code-behind code to modify the dom of the html page via the apis in the codice_15 namespace.