web stats analysis

Archive for May 10th, 2012

Check if JavaScript is enabled with asp.net

Solution

<html>
<body>
<noscript>
javascript is disabled on your browser
<style>div { display:none; }</style>
</noscript>
<div>
your content
</div>
</body>
</html>

 

How can i get just 2 digits after comma in javascript

Solution

var a = 5.017456;
alert(a.toFixed(2));