I came across one annoying error while coding in javascript for IE.

After debugging for several hours, commenting, uncommenting the parts of code I identified that accessing body element in the javascript before entire body element is formed, will throw the alert of 'Permission Denied' which is unrelated to what ever the actual problem is.

This happens only with IE.

So the solution for this IE only problem is add defer attribute to the
script tags manipulating body element.

Like

<script type="text/javascript" defer>
...access body element...
</script>

Comments

navya said…
Wow. This really made my day. Thanks a lot!

JavaScript Training in CHennai HTML5 Training in Chennai HTML5 Training in Chennai JQuery Training in Chennai JQuery Training in Chennai JavaScript Training in Chennai JavaScript Training in Chennai

navya said…
Wow. This really made my day. Thanks a lot!

JavaScript Training in CHennai JavaScript Training in CHennai JQuery Online Training JQuery Online Training
HTML5 CSS3 JavaScript Training in Chennai | HTML5 Online Training
navya said…
Wow. This really made my day. Thanks a lot!

JavaScript Training in CHennai HTML5 Training in Chennai HTML5 Training in Chennai JQuery Training in Chennai JQuery Training in Chennai JavaScript Training in Chennai JavaScript Training in Chennai

navya said…
Wow. This really made my day. Thanks a lot!

JavaScript Training in CHennai JavaScript Training in CHennai JQuery Online Training JQuery Online Training
HTML5 CSS3 JavaScript Training in Chennai | HTML5 Online Training
Unknown said…
This is my first visit to your blog, your post made productive reading, thank you. dot net training in chennai
Unknown said…
Informative article, just what I was looking for.seo services chennai

Popular posts from this blog

Proper way to have an anchor tag with onclick event

My FIRE Journey

CORS issues with IE9 and workarounds