jQuery Impromptu redirect to URL when value is true

jQuery Impromptu redirect to URL when value is true

Hello,

Im new here so hope I do the right thing.

I found a similiare question I have - being answered in this thread: http://forum.jquery.com/topic/jquery-impromptu-redirection-11-2-2010

But not quite.

Im using the following code:
  1. <button link="http://google.com" title="Remove '.$larmanlaggning[$i][2].'"';
                ?>
               
                onclick="$.prompt('Are you sure?',{buttons:[{title: 'Yes',value:true},{title: 'Cancel',value:false}], submit:function(v,m,f){alert(v);} })">X</button>


And I want to send the user to a certain adress when he/she clicks Yes.

How do I accomplish that?