How can I pass a string value by reference in javascript.
I want this kind of functionality.
    //Library.js
    function TryAppend(strMain,value)
    {
    strMain=strMain+value;
    return true;
    }
    //pager.aspx
    function validate()
    {
    str="Checking";
    TryAppend(str,"TextBox");
    alert(str); //expected result "Checking" TextBox
    //result being obtained "Checking"    
    }
How to do this. ?
 
     
     
    