hi,
The substring() method extracts the characters from a string, between two specified indices,
and returns the new sub string.
This method extracts the characters in a string between "from" and "to", not
including "to" itself.
//Example of extract characters from a string:
<script type="text/javascript">
var str="Reena Jain!";
document.write(str.substring(5)+"<br />");
document.write(str.substring(5,4));
</script>
Hope this will help you