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

Q491 Is there any way of knowing the URL of the next document to be opened from within an onUnLoad event?

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

There is no way to trap the next location, unless you add an onClick event handler to each link to tell you what link was selected by the user:

<script language="JavaScript"><!--
var nextpage = '';

<body onUnload="alert(nextpage)">

<a href="http://www.irt.org/" onClick="nextpage=this.href">irt.org</a>


©2018 Martin Webb