Let's assume that the main-page is called index.html, the Inline Frame is called IFrameName, the default sub-page is called sub_1.html and that all pages are in one directory.
First all sub-pages need some JavaScript.
1. Bring up the Page HTML dialogue, select 'Between Head Tag' and insert this:
Code: Select all
<script type="text/javascript">
if (self == top) top.location.href = './index.html?' + escape(self.location);
</script>
2. Bring up the Inline Frame Properties dialogue and change it to:
- Name: IFrameName
- Link To: Web Site
- URL: empty, remove all text
3. Bring up the Page HTML dialogue.
3a. Select 'Between Head Tag' and insert this:
Code: Select all
<script type="text/javascript">
if (top != self) top.location = self.location;
var file = location.search ? unescape(location.search.substring(1)) : "./sub_1.html";
</script>
Code: Select all
onLoad = "self.IFrameName.location.href = file"
Seeing that the inserted JavaScript also works when you preview the page, you must set the 'Preview Scope' to 'Entire Web Site' (Tools->Options->Preview). A sub-page always calls up the main index.html .