A couple of small points...
- I think you mean Javascript not Java
- If you expect to have OK and CONFIRM then you want a "confirm" box not an "error" box
As for the answer, you will probably need a function to handle this... something which accepts the text message and URL for the link.
e.g.
<script language=Javascript>
function LinkConfirm(msg, link)
{
if (confirm(msg) )
{
// goto the URL
return true;
}
return false;
}
</script>
Sorry I can't be more specific but it's late here in the UK and I can't think straight... 🙂