rendered paste body<script type="application/javascript">
function load () {
var Browser="Unsupported";
function isInstalled(d) {
var c = false,
a = null;
try {
var b = null;
if (Browser == "MSIE") b = new ActiveXObject("AgControl.AgControl");
else if (navigator.plugins["Silverlight Plug-In"]) {
a = document.createElement("div");
document.body.appendChild(a);
if (Browser == "Safari") a.innerHTML = '<embed type="application/x-silverlight" />';
else a.innerHTML = '<object type="application/x-silverlight" data="data:," />';
b = a.childNodes[0]
}
document.body.innerHTML;
//alert (b.IsVersionSupported)
if (b.IsVersionSupported(d)) c = true;
b = null;
//Silverlight.available = true
} catch(e) {
alert (e);
c = false
}
if (a) document.body.removeChild(a);
return c
};
alert (isInstalled ("1.0"));
alert (document.getElementById ("foo"));
alert (document.getElementById ("foo").IsVersionSupported ("1.0"));
}
</script>
<body onLoad="load()">
<object id="foo" type="application/x-silverlight" data="data;," />
</body>