Forum Moderators: open
[edited by: tedster at 7:59 pm (utc) on Jan. 11, 2005]
[edit reason] fixed url [/edit]
top.location.href="master.html?" + passpage
For "master.html?" use the absolute address of your master page ( http://www.example.com/master.html? ). Then no matter how deep or shollow in the dirctory structure your orphaned page is, the same script will work.
It seems like the script doesn't even try to load the master page. Maybe top.location is not equal to self.location in this instance?
jdkuehne
<Sorry, no example URLs. See TOS [webmasterworld.com]>
[edited by: tedster at 10:06 pm (utc) on Jan. 11, 2005]
In Explorer 6 that's under Tools > Internet Options > Advanced and then make sure that "Disable script debugging" is not checked.
Javascript is rightly quite touchy about proper syntax - not nearly so forgiving as browsers are with HTML. Make sure your code has the same line breaks that are on the example page [webmasterworld.com].
You said you had this working elsewhere - maybe you can just copy/paste the working code and then change only the "master.html?" part.