Apply your JS skills to key Mozilla projects as an MDN Fellow! http://mzl.la/MDNFellowship

mozilla

Compare Revisions

String.prototype.indexOf()

Change Revisions

Revision 621549:

Revision 621549 by evanjones on

Revision 639455:

Revision 639455 by igor.bukanov on

Title:
String.prototype.indexOf()
String.prototype.indexOf()
Slug:
Web/JavaScript/Reference/Global_Objects/String/indexOf
Web/JavaScript/Reference/Global_Objects/String/indexOf
Tags:
"prototype", "String", "Method", "JavaScript"
"prototype", "String", "Method", "JavaScript"
Content:

Revision 621549
Revision 639455
t36        The location within the calling string to start the searct36        The location within the calling string to start the searc
>h from. It can be any integer. The default value is 0. If <code>f>h from. It can be any integer. The default value is 0. If <code>f
>romIndex&nbsp;&lt;&nbsp;0</code>&nbsp;the entire string is search>romIndex&nbsp;&lt;&nbsp;0</code>&nbsp;the entire string is search
>ed (same as passing 0). If&nbsp;<code>fromIndex&nbsp;&gt;=&nbsp;s>ed (same as passing 0). If&nbsp;<code>fromIndex&nbsp;&gt;= str.le
>earchValue.length</code>, the method will return -1.>ngth</code>, the method will return -1.

Back to History