Reference

Problem

Sometimes there is an audit requirement, to let customers know a link is off your site and therefore you take no further responsibility for it. For example, a reference to an external associate site.

Solution

I’ve just used some simple javascript code, which is triggered by the click (onclick event). This pops up a warning, which can be accepted or rejected. Accepting goes to the desired site, whilst reject just aborts.

Example

Or you can see it in its own page here:

Here is the source code of the link:

<script>function Terms() { popup=window.open('/common/demoP/popup.html','windowName','width=500,height=300'); if (!popup.opener) popup.opener = self;}</script>Hi there - below you'll see a link to www.securityfocus.com. When you click it, a popup will appear that you need to accept to follow the link.