News
Javascript string substr() method : the substr() method is used to extract the sub-string from a string. it counts the index from 0. it returns the number of characters starts from the first parameter ...
The problem with your latter post is that indexOf returns (-1) when the substring is not found. <BR><BR>-1 == true<BR><BR>Instead test if the indexOf ("index2.htm") > -1.
Some results have been hidden because they may be inaccessible to you
Show inaccessible results