I assume that the "txtFilePath
" is an Id of an element, but not a tag name as refered in the provided by you code snippet. The getElementsByTagName
function returns a list of elements with the given tag - please refer this MDN article
for more detailed information.
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.