At the end of my HTML page I have following.....
<script>
for (i = 0; i < document.sectio n_entry.length; i++) {
// some code
}
</script>
Here it gives an error that "document.secti on_entry.length is null or
not a object". "section_en try" is the name of a form on my page.
When I have this same code inside a function (instead of at a global
level like how it is here) it works fine. Anyone have any ideas what
is causing the error?
Thanks in advance for any help,
Jehan
<script>
for (i = 0; i < document.sectio n_entry.length; i++) {
// some code
}
</script>
Here it gives an error that "document.secti on_entry.length is null or
not a object". "section_en try" is the name of a form on my page.
When I have this same code inside a function (instead of at a global
level like how it is here) it works fine. Anyone have any ideas what
is causing the error?
Thanks in advance for any help,
Jehan
Comment