It depends upon what you mean by a pop-up. The simplest is the alert box. Using that to fulfill your requirements as I understand them could be done something like this:
Code:
<html>
<head>
<title>Test Condition - Demo</title>
<script type="text/javascript">
var go
function checker(){
if (go!=='OK'){
alert('Please Click Required Link')
location.href=unescape(location.href)
}
}
</script>
</head>
<body onunload="checker()">
</body>
<noscript><p>Javascript required to go forward from here, use your browser's 'Back' button if you do not wish to proceed.</p></noscript>
Required Link: <a href="#" onclick="go='OK';return false;">Click Here to Certify that You are Willing to View more content on this site</a><br>
<a href="#" onclick="location.href='cool.htm';return false;">Optional link to Cool Stuff</a><br>
<script type="text/javascript">
document.write('<a href="javascript:history.go(-1)" onclick="go=\'OK\';return true;">Click here to Go Back, you chicken?</a>');
</script>
</html>
There are many other ways.
Bookmarks