Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

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

irt.org | Knowledge Base | JavaScript | Link | Q419 [ previous next ]

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

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?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.