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

Q419 How can I change the href property of a link in another frame?

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

By manipulating the links object array. The links array contains a reference to all the links in a document in the order they appearr in the document. The following changes the href attribute of the first (remember arrays start at zero) link in the parent frame's otherframename frame:

<script language="JavaScript"><!--
parent.otherframename.document.links[0].href = 'someotherpage.htm';
//--></script>

Feedback on 'Q419 How can I change the href property of a link in another frame?'

©2018 Martin Webb