<% ' Create a variable to note the referring page previous_page=trim(request.servervariables("http_referer")) ' Create a variable for the url of the page the user is clicking to url=trim(request.querystring("url")) ' If there is no referring page or no link to redirect to ' then send the user elsewhere. This can be another page stating ' that something was missing, here we'll just refer all bad requests to yahoo.com if previous_page = "" or url ="" then response.redirect "http://www.nancyart.co.uk" end if %> Link to <%= url %> <body bgcolor="#ffffff"> Your browser does not support frames<br> Please click <a href="<%= url %>">here</a> to continue to <br> <%= url %> </body>