Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

Feedback on: JavaScript Frame Articles, January 06, 2000 at 18:09:25:

You are here: irt.org | About | Feedback | 701 [ previous next ]

Feedback on:
JavaScript Frame Articles

Sent by
zan on January 06, 2000 at 18:09:25:

Worth:
Very worth reading

Comments:
I am learning javascripting the old-fashioned way (by looking at scripts that do things related to what I want to do and dissecting the methods) and I came to this page to see if I could determine how to solve a (seemingly) simple problem.

I have an index that loads into my website (http://zap.to/zans) as a frameset within a frameset.

Frames:
CONTENTS
MAIN
(and main contains:)
CONTENTWINDOW
FLOATINGINDEX

What I want to do is provide a button or link within the index frame that "kills" the index frame when the user clicks it.

The obvious solution to this seems to be to set the location of the MAIN frame (which holds the frameset containing the index and whatever page the user happens to be on) with the location of CONTENTWINDOW.

I tried this method:

self.parent.main.location=self.parent.main.contentwindow.location;

but it didn't seem to do anything.

The scripts on this page seem to be more on the mark... any suggestions?

zan


Other feedback on 'JavaScript Frame Articles' - show all

©2018 Martin Webb