Menu
Here’s my code:
[code]
…
<script language=”JavaScript” type=”text/javascript”>
<!–
function alertBox () {
if(confirm(“Are you SURE that you want to clear the CV2 value?nnIt will be erased… FOREVER”)) {
return true;
} else {
return false;
}
}
–>
</script>
</head>
<body>
<?php
if(isset($_GET[“clear”])) {
echo “clear: “.$_GET[“clear”].”<br />n”;
}
?>
<a href=”?clear=5″ onClick=”alertBox();”>test</a>
</body>
….
I thought this would be very simple, but I’ve tried a number of things and just can’t seem to get it to do what I want. I would like the link to return false / NOT WORK if they hit the cancel button. Any ideas?