JavaScript
  Home arrow JavaScript arrow JavaScript Objects: More on String Methods
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  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 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: More on String Methods
By: James Payne
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 4
    2008-01-22

    Table of Contents:
  • JavaScript Objects: More on String Methods
  • The CharAt() Method
  • Working with the ConCat() Method
  • The FontColor() Method
  • FromCharCode() Method
  • The LastIndexOf() Method

  • 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
     
     
    ADVERTISEMENT


    JavaScript Objects: More on String Methods


    (Page 1 of 6 )

    Welcome back to my series covering JavaScript Objects. In the last issue we discussed the Object String properties and some of the Object String methods. In this episode we will continue our discussion of the Object String methods and how to use them.

    We have a lot of ground to cover, so let's get to it. Before we begin though, let's take a look at our JavaScript String Object table again:

     

    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 strike through

    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 digging on my article about Javascript String Methods. In this enticing...
     

    JAVASCRIPT ARTICLES

    - Building Dynamic Shadows with JavaScript and...
    - Active Client Pages: Chrys`s Approach
    - The Script Approach to Active Client Pages: ...
    - Principles of Active Client Pages: the Scrip...
    - Active Client Pages: the Script Approach
    - Building an RTF-capable Form with the Ext JS...
    - Creating a Multi-Tabbed Online Form with the...
    - jQuery Overview
    - Constructing a Multi-Column Online Form with...
    - Grouping Field Sets on Dynamic Web Forms wit...
    - Building Dynamic Web Forms with the Ext JS F...
    - More on JavaScript Array Objects
    - Methods of the DOM Location Object
    - The DOM Location Object Properties
    - Handling Remote Files with JavaScript Click ...







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
    Stay green...Green IT