Se ho:

stringa = 'abcdef';
sottostringa = stringa.substr(3,3);
alert ( sottostringa );


mi da giustamente 'def'...
se invece ho

stringa = parent.location; (che è http://localhost/prova.php)

non funziona... perché??