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

Q95 Where do I place target="Main" in the following code?

You are here: irt.org | FAQ | JavaScript | Link | Q95 [ previous next ]

location.href = 'apage.html';

The target is included in the object tree hierarchy when you change the location of a document, for example to change the location of another frame:

parent.frameName.location.href = 'apage.html';

To change the location of the parent directory:

parent.location.href = 'apage.html';

©2018 Martin Webb