I am not a programmer, so please forgive me if my question is too silly. I have created a very simple website which takes the first name, last name and then a very simple javascript file says Thank You <first name> <last name> and done. I figured HTML through YouTube videos and found this javascript 
    function signFunction(firstName, lastName){
    alert("Thank you , " + firstName + " " + lastName + "!");       
}
I just want to know how can I save the output of javascript to a text file. I am using Apache in Debian.
