During MIX this year Stefan Schackow did a presentation on the HTML/JS bridge in Silverlight 2. (It’s the second part of the presentation; the first part is Chung Webster talking about how you can use the ASP.NET controls to integrate Silveright in your web application.) If you’re interested, you can download the code for this session and see how things were done.