here everything is working fine but when i see in internet explorer it is giving the below screen(but still it is working fine). could you please tell me where i'm going wrong.
That's a JavaScript error, not something to do with JSP, so I've moved this to the HTML/JavaScript forum.
And in the future, please cut and paste error messages as text rather than attaching images of the error. Images cannot be searched and negatively affect SEO.
One of your element fetches is failing. Typically Microsoft to elide the parameter so that it's harder to tell which one. Look at the HTML sent to the browser to match up line numbers.
Or if you are using a modern version of IE, open the JavaScript debugger.
Because it's getting executed before any of the elements have loaded. Look into the DOMContentLoaded event or use jQuery which makes stuff like this much easier.