Demonstrating the toLocaleString() method : toLocaleString : Number Data Type JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Number Data Type » toLocaleString »

 

Demonstrating the toLocaleString() method

















<html>
<head>
<title>Demonstrating the toLocaleString() method</title>
<script type="text/javascript" language="javascript">
<!-- //
function DisplayLocale(){
    var entry1 ;
    entry1 = prompt("Enter a floating point number""123.123");
    number = new Number();
    number = Number(entry1);
    document.write(number.toLocaleString());
}
// -->
</script>
</head>
<body onload="DisplayLocale()">
</body>
</html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Number Data Type
» toLocaleString