w3schools
  
HOME HTML CSS XML JAVASCRIPT ASP PHP SQL MORE...   References Examples Forum About

JavaScript toUpperCase() Method


String Object Reference JavaScript String Object

Definition and Usage

The toUpperCase() method converts a string to uppercase letters.

Syntax

string.toUpperCase()


Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The toUpperCase() method is supported in all major browsers.


Example

Example

Convert a string to uppercase letters:

<script type="text/javascript">

var str="Hello world!";
document.write(str.toUpperCase());

</script>

Try it yourself »


String Object Reference JavaScript String Object

WEB HOSTING
Best Web Hosting
PHP MySQL Hosting
Top 10 Web Hosting
UK Reseller Hosting
Web Hosting
FREE Web Hosting
Top Web Hosting
Cheap UK Web Hosting
WEB BUILDING
XML Editor – Free Trial!
FREE Flash Website
FREE Web Templates
SEO Company
EDUCATION
US Web Design Schools
HTML Certification
JavaScript Certification
XML Certification
PHP Certification
ASP Certification
STATISTICS
Browser Statistics
Browser OS
Browser Display
FLIGHT TICKETS
Find the cheapest flight
to any destination now!
SHARE THIS PAGE