Try prefacing your referance to "creator" with the window it relates to like:
s = win.creator.location.toString();
>Hi,
>
>When client script debugging is enabled in IE, I receive an error message but the script works fine (i.e. the parent form location changes and the form is refreshed).
>
>The script is very simple. It looks like this:
>
><script language="javascript">
> function ParentRefresh()
> {
> s = creator.location.toString();
> n = s.indexOf("#");
>
> if (n > 0)
> s = s.substring(0, n);
>
> creator.location = s ;
> }
></script>
>
>
>The error message is "creator is undefined", but as I´ve said before, the script works.
>
>Any ideas?
>
>Thanks in advance,
>
>Eugenio
-----------------------------------------
Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.comwww.prenia.comWeblog: blogs.prenia.com/cathi