i have this code in silverlight application by the defualt.aspx:
<head id="Head1" runat="server">
<link id="link1" rel="shortcut icon" href="favicon1.ico" type="image/vnd.microsoft.icon" />
<title id="Title1" >hello</title>
i need to change the href="favicon2.ico" in javascript when the qwerystring is changed:
i tried to write like this, but it's nut working:<script type="text/javascript">
if( Request.QueryString ("user"). Equals("true", StringComparison.OrdinalIgnoreCase))
{
document.title="hi user";
document.getElementById('link1').href = ('favicon2.ico');
}
</script>
</head>
</html>
i will be happy to get your help!!!
thanks



ציטוט ההודעה
