Maisara-WD Posted August 14, 2008 Share Posted August 14, 2008 HiThis object is too strange,, can any body tell me what is the benefit we will have from this object??? I mean,, can u explain this object in details, for me please,, from the syntax to the examplethanx>>>>>> Link to comment Share on other sites More sharing options...
Ingolme Posted August 14, 2008 Share Posted August 14, 2008 It's extremely simple. It will tell you the position of a string in another string: str = "The quick brown fox jumps over the lazy dog";alert(str.indexOf("q")); This will return 4Because "q" is 4 characters into the string: String: The q...Position: 01234... Link to comment Share on other sites More sharing options...
Maisara-WD Posted August 14, 2008 Author Share Posted August 14, 2008 Thnaxit's clear nowthank u Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.