I can't seem to figure why it will not return the file's name and extension.
It is suppose to return the XML file's name and extension in an alert message.
It appears that this part of the code is not working. I deduced this by just declaring an alert at the beginning of the called function (msg()), and with the onClick function of the button. The onClick function works, but the msg() is not being called or it doesn't know what to do.