< frameset rows="100px, *">
< src="/header/index.html" name="headerFrame">
< src="http://www.someothersite" name="otherFrame">
< /frameset >
let's say that in the www.someothersite page, you would want to access itself, i.e. the page elements, you have three options:
a) parent.otherFrame: The issue here is that if your page is being hosted in another site, i.e. your page is framed by others, then they may, at one point, decide to name the frame differently. However if this is your own site, then there shouldn't be a problem.
b) parent.frames[1]: The issue here is that your expecting that the frame index is always at 1. Again, if you have no control over the order of the frames, then you will have an issue.
c) self: This is the best option as your page will work regardless of the hosting page changes.
That's it.
Subscribe to:
Post Comments (Atom)

0 comments:
Post a Comment