Problem
If you check the console tab of FireBug in FireFox, you can see the following issue there.
Quote:
SyntaxError: syntax error
document.getElementID(
ThirdPage.aspx (line 1, col 22)
It clearly mentions that error is at
document.getElementID(
.
And here are two problems.
- That is
document.getElementByID
not document.getElementID
. - And there is no element in your code, which has a Id as body, it is rather a tag.
Solution
So, get correct Id of the control you want to use in the code with
document.getElementByID
.