I'm using the following to change the location of my frame, but it only works if I put an alert box in afterwards.

Works
--------
parent.mainFrame.document.location="http://www.teamtalk.com";
alert("hello");

Doesn't Work
-----------------
parent.mainFrame.document.location="http://www.teamtalk.com";


I assume it's because it needs a doevents of some kind. I've put in a parent.mainFrame.Refresh, which doesn't work without the alert box either.