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,078

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

    Javascript Lowercase Text



    j="This IS a GOOd tiME.";

    j=j.toLowerCase();

    document.write(j);

    Which Prints:
    this is a good time.

    -We created a variable and named it j because the letter j is a nice letter.
    -We applied Javascript's built-in toLowerCase 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.toLowerCase());


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

    j="This IS a GOOd tiME.";
    j=j.italics().toLowerCase().link('http://google.com');
    document.write(j);

    or

    j="This IS a GOOd tiME.";
    document.write(j.italics().toLowerCase().link('http://google.com'));


    Free Copy and Paste Javascript Code:

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

    i="This IS a GOOd tiME.";
    j=i.toLowerCase();

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

    -->
    </script>


    Resources:
    Make Text Uppercase Using Javascript
    Make Text Superscript Using Javascript
    Make Text Subscript Using Javascript
    Make Text Bold Using Javascript
    Italic Text in Javascript
    Redirect 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 Uppercase Text
    Next Article: Javascript Focus Form Field





    Pro CSS and HTML Design ...Pro CSS and HTML Design Patterns

    Michael Bowers

    New $29.69

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

    Eric Freeman, Elis...

    New $26.39

    Creating Web SitesCreating Web Sites

    Matthew MacDonald

    New $19.77

    CSS MasteryCSS Mastery

    Andy Budd, Simon C...

    New $23.09

    CSSCSS

    Eric Meyer

    New $29.69

    Bulletproof Web DesignBulletproof Web Design

    Dan Cederholm

    New $26.39

    CSSCSS

    David McFarland

    New $23.09

    jQuery in ActionjQuery in Action

    Bear Bibeault, Yeh...

    New $26.39

    HTML, XHTML, and CSS, Si...HTML, XHTML, and CSS, Sixth Edition ...

    Elizabeth Castro

    New $23.09


    Of Interest:
  • Add, Subtract, Multiply, and Divide in Perl
  • Write a WHILE LOOP in Perl, Carefully
  • Write a FOR LOOP in Perl
  • Encryption with the Crypt Function in Perl
  • Javascript Unshift - Use Unshift to Put Items on the Front of an Array in Javascript
  • Opening an Alert Box in Javascript
  • Javascript Subscript Text
  • Javascript SetTimeout
  • HTML Codes
  • HTML Image
  • HTML Color Chart
  • HTML Superscript Text

  • More Articles:
  • Create or Put Items into an Array in Perl
  • Get the Length of a Word or String in Perl
  • To Reverse an Array in Perl
  • OPEN and READ a Data File in Perl
  • Javascript Alert
  • Javascript Change Fonts
  • Javascript Change Background Colors
  • onClick Javascript
  • If, Else If, and Else in Javascript
  • Javascript Bold Text
  • Get Query String Using Javascript
  • Javascript Uppercase Text
  • HTML Status
  • HTML Superscript Text
  • HTML Forms
  • 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,818
    Counter by iLoveTheCode.com


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