How can I access JavaScript function argument outside the function?
<p>Can I access the function arguments outside the function?</p>

<p>Here is my code:</p>

<pre><code>function viewmessage(username,name) {
        //alert(name + " : " + username);
        $('#heading').html(name);
        $.get('/notification/viewmessage', {user:username}, function(data) {
            $('#messagesfrom').html(data);
            $('#newmessage').slideDown(200);
        });
    }
alert(name + " : " + username);
</code></pre>
