where searchCharacter is the character or string for which we have to find the last index position and index is the integer value from where to start search ( it is optional ).
Description of code:
var string = new String("Welcome to RoseIndia Technologies");
<table border="0" width="45%" bgcolor="#800080">
<td width="100%" align="center">
<p align="center"><font face="Comic Sans MS" size="7" color="#FFFFFF">lastIndexOf method</font></td>
Welcome to RoseIndia Technologies<br/>
<input type="button" onclick="callLastIndexOf(); this.disabled='true';
" value="Last Index of o" />
click on the button "Last Index of o" to find the last index of character "o" in the displayed string "Welcome to RoseIndia Technologies".
We have 1000s of tutorials on our website. Search Tutorials tutorials on our website.
Posted on: January 29, 2009 If you enjoyed this post then why not add us on Google+? Add us to your Circles