toUpperCase() : Converting Lower case text to Uppercase in JavaScript

var str="Welcome to plus2net";
var a1 = str.toUpperCase();
document.write(a1); // WELCOME TO PLUS2NET
Full code is Here

<script type="text/javascript">
var str="Welcome to plus2net";
var a1 = str.toUpperCase();
document.write(a1);//WELCOME TO PLUS2NET



Enter text in Lower case
<script language=JavaScript>
function copy()
Enter text in Lower case <BR>
<input  type=text id=t1 name=text onKeyUp=copy();> 
Tutorial on onKeyUp() event handling

Here is the basic syntax for toUpperCase method.

var a1 = string.toUpperCase();

JavaScript String Reference Uppercase to lower case by toLowerCase() method
Subscribe to our YouTube Channel here


* indicates required
Subscribe to plus2net



    Well Useful

    Post your comments , suggestion , error , requirements etc here

    We use cookies to improve your browsing experience. . Learn more
    HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
    ©2000-2024 All rights reserved worldwide Privacy Policy Disclaimer