How use javascript in web site designed by c#
<p>**How can I write below java code in my web site which designed by c# </p>

<pre><code>&lt;script type="text/javascript"&gt; 

txt = "&lt;p&gt;Browser CodeName: " + navigator.appCodeName + "&lt;/p&gt;"; 
txt+= "&lt;p&gt;Browser Name: " + navigator.appName + "&lt;/p&gt;"; 
txt+= "&lt;p&gt;Browser Version: " + navigator.appVersion + "&lt;/p&gt;"; 
txt+= "&lt;p&gt;Cookies Enabled: " + navigator.cookieEnabled + "&lt;/p&gt;"; 
txt+= "&lt;p&gt;Platform: " + navigator.platform + "&lt;/p&gt;"; 
txt+= "&lt;p&gt;User-agent header: " + navigator.userAgent + "&lt;/p&gt;"; 

document.getElementById("example").innerHTML=txt;** 
</code></pre>
