Converts all the alphabetic characters in a string to uppercase.
Syntax
strVariable.toUpperCase()
"String Literal".toUpperCase()
Remarks
The toUpperCase method has no effect on non-alphabetic characters.
Example
The following example demonstrates the effects of the toUpperCase method:
var str1 = "This is a STRING.";
var str2 = str1.toUpperCase();
document.write(str2);
// Output: THIS IS A STRING.
Requirements
Supported in the following document modes: Quirks, Internet Explorer 6 standards, Internet Explorer 7 standards, Internet Explorer 8 standards, Internet Explorer 9 standards, Internet Explorer 10 standards, Internet Explorer 11 standards. Also supported in Store apps (Windows 8 and Windows Phone 8.1). See Version Information.
Applies To: String Object

