I am creating 3
jsp pages. There are 4 boxes with different id in each page (i.e. box1, box2, box3, box 4 in page 1; box 5, box6, box7, box8 in page 2; box9, box10, box11, box12 in page 3). Below is the sample code in page 1:
In each page there is also a script. In the script I deliberately use all those ids above as parameters of a function. Below is the sample code in page 1:
I must do this because this is AFAIK is the only way for my program works. The problem I encounter is that each time the program started, a warning appears:
"The source element with id box5 does not exist"
Althoug the program still works fine with this warning, I still want to eliminate the warning.
My question here is:
How can I stop such warning from appearing?
Is there a kind of catching error method in HTML?