Does anyone know how to show a little javascript confirmation
box for a commandLink Click event? Please see the code below:
<h:commandLink onclick="getConfirmation();" action="#
{backer.majorConsequences}" value="Major Consequences" />
<script language="javascript" >
function getConfirmation(){
if(confirm("Click either button, I can't stop
this from happening anyways.")){
// none of these work
event.returnValue=true;
event.cancelBubble=true;
return true;
}else{
// none of these work
event.returnValue=false;
event.cancelBubble=false;
return false;
}
}
</script>
Dennis Byrne