Converting String to Upper Case in JavaScript
Hi,
For converting a string to upper case in javascript, use the following code.
<html>
<head>
<title>Convert String</title>
<script type="text/javascript" language="javascript">
<!-- //
onload = function(){
var str = new String("coderzheaven");
var toUpperCase = str.toUpperCase();
document.write(toUpperCase);
}
// -->
</script>
</head>
<body>
</body>
</html>
It will give you ‘CODERZHEAVEN’
Link to this post!