• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 6. Core Syntax > String.lastIndexOf()

String.lastIndexOf()

JavaScript1.0+, JScript1.0+, ECMAScript1.0+ NES2+, Nav2+, IE3+, Opera3+ Syntax

							string.lastIndexOf(string, num)

string.lastIndexOf(string)

Description

The lastIndexOf() method of an instance of the String object returns the indexed start position of the string passed, starting from the right and going left. Additionally, you can specify an index, defined by num in the syntax definition, to start your search for the string specified. This method is the same as the String.indexOf() method, but it starts at the end of the string.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint