JavaScript
  Home arrow JavaScript arrow JavaScript Objects: Finishing Strings
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Dedicated Servers  
Download TestComplete 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
IBM Developerworks
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
JAVASCRIPT

JavaScript Objects: Finishing Strings
By: James Payne
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 3
    2008-01-28

    Table of Contents:
  • JavaScript Objects: Finishing Strings
  • The Replace() Method
  • The Search() Method
  • The Slice() Method
  • The Strike(), Sub(), Small() and Sup() Methods
  • The ToLowerCase() and ToUpperCase Methods

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    Iron Speed
     
    ADVERTISEMENT

    Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!

    JavaScript Objects: Finishing Strings
    (Page 1 of 6 )

    In the last tutorial we continued our discussion on String Objects in JavaScript. Hopefully we will wrap it up in this episode. We left off with the Match() method, which allowed us to search a string and return the same string if it was present in our variable, or return a null value if it was not. We will pick back up with the Replace() method. But before we do, here is our table of Object String Methods:

     

    Method

    Description

    anchor()

    Creates an HTML anchor

    big()

    Displays a string in a big font

    blink()

    Displays a blinking string

    bold()

    Displays a string in bold

    charAt()

    Returns the character at a specified position

    charCodeAt()

    Returns the Unicode of the character at a specified position

    concat()

    Joins two or more strings

    fixed()

    Displays a string as teletype text

    fontcolor()

    Displays a string in a specified color

    fontsize()

    Displays a string in a specified size

    fromCharCode()

    Takes the specified Unicode values and returns a string

    indexOf()

    Returns the position of the first occurrence of a specified string value in a string

    italics()

    Displays a string in italic

    lastIndexOf()

    Returns the position of the last occurrence of a specified string value, searching backwards from the specified position in a string

    link()

    Displays a string as a hyperlink

    match()

    Searches for a specified value in a string

    replace()

    Replaces some characters with some other characters in a string

    search()

    Searches a string for a specified value

    slice()

    Extracts a part of a string and returns the extracted part in a new string

    small()

    Displays a string in a small font

    split()

    Splits a string into an array of strings

    strike()

    Displays a string with a strikethrough

    sub()

    Displays a string as subscript

    substr()

    Extracts a specified number of characters in a string, from a start index

    substring()

    Extracts the characters in a string between two specified indices

    sup()

    Displays a string as superscript

    toLowerCase()

    Displays a string in lowercase letters

    toUpperCase()

    Displays a string in uppercase letters

    toSource()

    Represents the source code of an object

    valueOf()

    Returns the primitive value of a String object

    More JavaScript Articles
    More By James Payne


       · Thanks for stopping by to check out my final article in the Javascript String...
     

    JAVASCRIPT ARTICLES

    - A Closer Look at Smart Markers with Yahoo! M...
    - Using Polylines and Smart Markers with Yahoo...
    - Bulleted Menu of Links
    - Creating Click Loggers and Basic Markers wit...
    - Adding Pan Controls to Yahoo! Maps
    - Adding Zoom Controls to Yahoo! Maps
    - Working with Yahoo! Maps
    - Building Image Zooming Controls with the DOM...
    - Working with Multiple Graphics for a Zoom Ap...
    - Improving an Image Zooming Application with ...
    - Zooming in on Images with JavaScript
    - JavaScript Date Objects: Universal Coordinat...
    - Javascript Objects: More Date Methods
    - JavaScript Objects: Dates
    - JavaScript Objects: Finishing Strings

    Iron Speed





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway