iLTC Home
Bookmark iLTC!
iLTC Google Boards

Google Groups
Receive The Code in Email!



Categories

Perl
  • Perl Tutorials Beginners

    Javascript
  • Javascript Tutorials
  • Javascript Tutorials Beginners

    HTML
  • HTML Tutorials



  • I love the code... dot com
    20,100

    iLoveTheCode.com
    Javascript > Javascript Tutorials How To Easy > Javascript Uppercase Text

    Javascript Uppercase Text



    j="This is a good time.";

    j=j.toUpperCase();

    document.write(j);

    Which Prints:
    THIS IS A GOOD TIME.

    -We created a variable and named it j because the letter j is our favorite letter.
    -We applied Javascript's built-in toUpperCase method to our j string.
    -We stored those results back into j.
    -We used Javascript's built-in document.write to print to the browser.


    We could have also written this a little differently, like so:

    j="This is a good time.";

    document.write(j.toUpperCase());


    ADVANCED: You can also apply more than one method to the string:

    j="This is a good time.";
    j=j.italics().toUpperCase().link('http://google.com');
    document.write(j);

    or

    j="This is a good time.";
    document.write(j.italics().toUpperCase().link('http://google.com'));


    Free Copy and Paste Javascript Code:

    <script type="text/javascript">
    <!--

    i="This is a good time.";
    j=i.toUpperCase();

    document.write(i);
    document.write(j);
    document.write(i.toUpperCase());

    -->
    </script>


    Resources:
    Make Text Superscript Using Javascript
    Make Text Subscript Using Javascript
    Make Text Bold Using Javascript
    Italic Text in Javascript
    Redirect in Javascript
    Status Bar in Javascript


    Sun Javascript Documentation on Strings

    HTML Tags
    HTML Color Chart
    HTML Codes


    Click HERE to comment or discuss at iLoveTheCode GOOGLE Group
    Previous Article: Javascript Superscript Text
    Next Article: Javascript Lowercase Text





    jQuery in ActionjQuery in Action

    Bear Bibeault, Yeh...

    New $26.39

    Dreamweaver CS3Dreamweaver CS3

    David McFarland

    New $29.69

    CSSCSS

    Eric Meyer

    New $29.69

    Head First HTML with CSS...Head First HTML with CSS & XHTML

    Eric Freeman, Elis...

    New $26.39

    DojoDojo

    Matthew A. Russell...

    New $26.39

    Struts 2 in ActionStruts 2 in Action

    Don Brown, Chad Da...

    New $29.69

    JavaScriptJavaScript

    David Flanagan

    New $31.49

    CSS MasteryCSS Mastery

    Andy Budd, Simon C...

    New $23.09

    Creating Web SitesCreating Web Sites

    Matthew MacDonald

    New $19.77


    Of Interest:
  • Making a Directory Using mkdir in Perl
  • Opening and Reading a Directory in Perl
  • Combine, Put Two Arrays Together in Perl
  • To Sort an Array in Perl
  • Javascript Reset Form
  • Annoy Users with onBlur in Javascript
  • Passing an Argument or Variable to a Javascript
  • Use OnMouseOver in Javascript
  • Make Text Bold Using HTML
  • HTML Space
  • HTML Tables
  • Make Italic Text Using HTML

  • More Articles:
  • To Reverse an Array in Perl
  • Passing a Variable or Value to a Subroutine in Perl
  • Get the Length of a Word or String in Perl
  • Write a FOREACH LOOP in Perl
  • onClick Javascript
  • Javascript Change Background Colors
  • Javascript Change Font Size
  • Javascript Change Fonts
  • Write a For Loop in Javascript
  • Get String Length with Javascript
  • Splitting an Array using Javascript
  • Javascript Reverse - Use Reverse on Items in an Array in Javascript
  • HTML Subscript Text
  • HTML Background
  • HTML Tags
  • Make Italic Text Using HTML

  • Search iLTC w/ Google





    Recent Articles

  • Javascript Focus Form Field
  • Javascript Lowercase Text
  • Javascript Uppercase Text
  • Javascript Superscript Text
  • Javascript Subscript Text
  • Make Text Blink Using Javascript
  • Make a String into a Link in Javascript
  • Javascript Italics Text
  • Javascript Bold Text
  • Javascript Redirect
  • HTML Frames
  • HTML Color Chart
  • HTML Link
  • Javascript Status Bar








  • Perl Programming - Javascript Programming - Maybe Some PHP - Free Scripts - ILoveTheCode
    All Content © 2006 iLoveTheCode.com


    Contact Chris | About this Site


    316,840
    Counter by iLoveTheCode.com


    Last Modified: Sunday, 09-Jul-2006 01:40:46 EDT