myname=self.location.href; x=top.location.href; if (x != myname) { top.location=myname; }