Hi,
I have a directory with a file main.htm:
<html><body>
<p><iframe src=i.htm></iframe></p>
<p><a href="javascript:history.back()">Back</a></p>
</body></html>
and a file i.htm:
<html><body>
Content
</body></html>
The application can load main.htm in 5 different ways (always using
another frameset).
The 'Back' button should always affect main.htm (never i.htm). But I
cannot find a way to make this work, unless I start hardcoding on the
frame names/DOM themselves. But I want to avoid that, because the
applicability of main.htm must be ensured in all kind of (future)
framesets, and I don't want to modify main.htm every time for each new
frameset. Also, I can not rely on the frame name that main.htm might
(or might not) get from a parent.
I tried things like
self.history.back
window.history.back
...
but they go to the previous page of i.htm, not that of main.htm (unless
i.htm is "out of previous pages", so to say, then it goes to the
previous page of main.htm).
Any workarounds ?
Thanks,
--
Bart