LindaF
08-19-2003, 09:30 AM
I have a question about this code to force a page to open in a frameset:
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
if (parent.location.href == self.location.href) {
// change the url below to the url of the
// frameset page...
window.location.href = 'index.htm';
}
// End -->
</script>
I put this code in the head of each page and it works, except that the page that opens in the main frame is always the introductory page (obviously) rather than the specific page (e.g., "contactinfo.htm"); how can I amend the code so that each specific page will open in the mainframe of the frameset, rather than the intro page?
Thanks!
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
if (parent.location.href == self.location.href) {
// change the url below to the url of the
// frameset page...
window.location.href = 'index.htm';
}
// End -->
</script>
I put this code in the head of each page and it works, except that the page that opens in the main frame is always the introductory page (obviously) rather than the specific page (e.g., "contactinfo.htm"); how can I amend the code so that each specific page will open in the mainframe of the frameset, rather than the intro page?
Thanks!