Javascript Knowledge

  • what is javascript

  • javascript Variable
  • javascript function
  • javascript Event

  • JavaScript If
  • javascript for

  • javascript object
  • Javascript String
  • Javascript Date
  • Javacsript Array
  • Javascript Math

  • Javascript onclick
  • JavaScript onload

  • Javascript Frame
  • Javascript Image
  • Javascript Style
  • Javascript Textarea
  • Javascript Table
  • Javascript window
  • Javascript Location
  • Javacsript form
  • Javascript Checkbox
  • Javascript Input
  • Javascript Radio
  • Javascript Select
  • Javascript Submit

  • Javascript alert
  • Javascript close
  • Javascript confirm
  • Javascript Document open
  • Javascript getElementById
  • Javascript print
  • Javascript reload
  • Javascript remove
  • JavaScript replace
  • Javascript setTimeout
  • JavaScript split
  • JavaScript substring
  • Javascript window open
  • window showmodaldialog

  • Javascript href
  • Javascript IFrame
  • Javascript innerHTML
  • Javascript selectedindex
  • Javascript URL
  • Javascript window Location

  • javascript write to file
  • JavaScript write
  • javascript string to integer
  • Javascript popup
  • Javascript return
  • Javascript Obfuscator
  • Javascript disable
  • Javascript Hide
  • More others

    Javascript
    CSS
    PHP

     

    Javascript String


    String Object Methods

     

     

     

    FF : Firefox, N : Netscape, IE : Internet Explorer

     

     

     

    Method

    Description

    FF

    N

    IE

    anchor()

    Creates an HTML anchor

    1

    2

    3

    big()

    Displays a string in a big font

    1

    2

    3

    blink()

    Displays a blinking string

    1

    2

     

    bold()

    Displays a string in bold

    1

    2

    3

    charAt()

    Returns the character at a specified position

    1

    2

    3

    charCodeAt()

    Returns the Unicode of the character at a specified position

    1

    4

    4

    concat()

    Joins two or more strings

    1

    4

    4

    fixed()

    Displays a string as teletype text

    1

    2

    3

    fontcolor()

    Displays a string in a specified color

    1

    2

    3

    fontsize()

    Displays a string in a specified size

    1

    2

    3

    fromCharCode()

    Takes the specified Unicode values and returns a string

    1

    4

    4

    indexOf()

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

    1

    2

    3

    italics()

    Displays a string in italic

    1

    2

    3

    lastIndexOf()

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

    1

    2

    3

    link()

    Displays a string as a hyperlink

    1

    2

    3

    match()

    Searches for a specified value in a string

    1

    4

    4

    replace()

    Replaces some characters with some other characters in a string

    1

    4

    4

    search()

    Searches a string for a specified value

    1

    4

    4

    slice()

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

    1

    4

    4

    small()

    Displays a string in a small font

    1

    2

    3

    split()

    Splits a string into an array of strings

    1

    4

    4

    strike()

    Displays a string with a strikethrough

    1

    2

    3

    sub()

    Displays a string as subscript

    1

    2

    3

    substr()

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

    1

    4

    4

    substring()

    Extracts the characters in a string between two specified indices

    1

    2

    3

    sup()

    Displays a string as superscript

    1

    2

    3

    toLowerCase()

    Displays a string in lowercase letters

    1

    2

    3

    toUpperCase()

    Displays a string in uppercase letters

    1

    2

    3

    toSource()

    Represents the source code of an object

    1

    4

    -

    valueOf()

    Returns the primitive value of a String object

    1

    2

    4

    Javascript String Object Properties

    Property

    Description

    FF

    N

    IE

    constructor

    A reference to the function that created the object

    1

    4

    4

    length

    Returns the number of characters in a string

    1

    2

    3

    prototype

    Allows you to add properties and methods to the object

    1

    2

    4

     





















     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

  • Javascript |