I have an applcation built using Javascript and HTML5. I also have some scripts included that is to be executed on button click.
The application seems to be working fine on chrome but when I tried to run on Firefox it fails. I tried to debug and found out that document.getElementByID() returns null value. But the element is already existing in the body of the document.
Info:
Platform : Firefox
Version : Mozilla Firefox ESR
OS : Windows 7 64bit
I did refer to several similar questions on stackoverflow and found that the script part has to be within the body. But I am wondering if it is the case, then how could it work on Chrome?