Get value of parameter defined in callback javascript function
<p>How can I retrive parameter "url" inside call back function?</p>

<p>Function declared in global scope:</p>

<pre><code>var showPrompt = function(text, callBackFunc){
    $('#msg').html(text);
    $('#msgbtn').click( function(){callBackFunc();})
};
</code></pre>

<p>//calling function</p>

<pre><code>$('li').click(function(){  // about 100 li el.
    var url = '/prod/' + $(this).data('id');
    showPrompt('Page will be redirected', function(url){
        window.location = url;
    })
})
</code></pre>
