when this code is executed two links, one going to the Microsoft site and the other going to the Netscape site are brought up. after the link is clicked the user is asked “Do you want to visit Microsoft site” or “Do you want to visit Netscape site”. after confirmation the user is transferred to one of the sites. i can’t get the confirmation box to pop up. does anyone have any ideas? thanks! ?
here is the code:
<html>
<head>
<script language=”javascript” type=”text/javascript”>
<!–
var newur1
function CheckRequest(newur1)
{
if (confirm(“Do you want to visit ” + newur1 + ” site.”))
{
return true
}
else
{
return false
}
}
//–>
</script>
<title>Capturing Links</title>
</head>
<P><A href=”
CheckRequest(‘Microsoft’)”>Microsoft</A></P>
<P><A href=”
CheckRequest(‘Netscape’)”>Netscape</A></P>
</body>
</html>