Archive

Archive for June, 2012

Initcap function in JavaScript

June 5, 2012 Comments off

<script language=”javascript”>

function Initcap(word) {
var retWord = word.substring(0,1).toUpperCase()
+ word.substring(1,word.length).toLowerCase();
return retWord;
}

</script>

Advertisements
Categories: JavaScript, Technical