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

Q1377 How can I make the href property in a nested layer the same as the href property of the first link one layer up?

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


<span id="outer" style="position:relative">

<a href="javascript:alert('Hello World');">click</a>

<span id="inner" style="position:relative"><a href="javascript:;" onClick="this.href=window.document.layers['outer'].document.links[0]">click here</a></span>


©2018 Martin Webb