<html> <head> <script Language="Javascript" type = "text/javascript"> <!-- var newurl function CheckRequest(newurl) { if (confirm("Do you want to visit " + newurl + " site.")) { return true; } else { return false; } } //--> </script> <title>Capturing Links</title> </head> <P><A href="http://www.java2s.com" onClick = "return CheckRequest('java2s')">Java</A></P> <P><A href="http://www.netscape.com" onClick = "return CheckRequest('Netscape')">Netscape</A></P> </body> </html>