Try changing the onclick setting to "return getConfirmation();" and see what happens.

-Matt

On 7/7/05, Dennis Byrne <[EMAIL PROTECTED]> wrote:
Does anyone know how to show a little _javascript_ confirmation
box for a commandLink Click event?  Please see the code below:

<h:commandLink 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

Reply via email to