irt.org | Knowledge Base | JavaScript | Misc | Q1331 [ previous next ]
It shows the position of a substring in a string (or a letter in a string):
<script language="JavaScript"><!-- str = 'Hello There' alert(str.indexOf('The')); //--></script>
How to do the impossible with Google Gears
Out and About