var URL = top.location;
var idx = URl.lastIndexOf("somestring");
This one works, though:
var URL = "somestring";
var idx = URl.lastIndexOf("somestring");
It seems it fails to notice that the first URL is really a string.
Is there a way I can cast it?
Thanks in advance as my neck is on the line!
--
Mario Dorion <Ma...@SCVN.Com>
Variable names are case-sensitive. You change the case of the "L" from
URL to URl, which will throw off the lastIndexOf() method.
var URL = top.location.href;
or
var URL = top.location.toString();
-- Gordon
PS: How was the Java/JavaScript conference?