body.tagname is null or not an object

A

Arlen Ayojiak

We discovered an interesting problem with iFrames and IE6. We started
encountering a body.tagName is null or not an object error when trying
to print a web page or a document that is within an iFrame. I noticed
that there were a lot of people getting this same error, well this is
fix I discovered for our team here.

When we had the problem:
<iframe name=body src=wherever.html></iframe>

Resolved:
<iframe name=iframebody src=whereever.html></iframe>

See the difference? With the new browser, calling an iframe body
which is enclosed in a page that already has a body tag conflicted
with one another and in result, the error appeared.

Update the iframe's name to something other than body and that should
do it.

Arlen Ayojiak
 
Joined
Jul 6, 2005
Messages
1
Reaction score
0
Arlen Ayojiak said:
We discovered an interesting problem with iFrames and IE6. We started
encountering a body.tagName is null or not an object error when trying
to print a web page or a document that is within an iFrame. I noticed
that there were a lot of people getting this same error, well this is
fix I discovered for our team here.

When we had the problem:
<iframe name=body src=wherever.html></iframe>

Resolved:
<iframe name=iframebody src=whereever.html></iframe>

See the difference? With the new browser, calling an iframe body
which is enclosed in a page that already has a body tag conflicted
with one another and in result, the error appeared.

Update the iframe's name to something other than body and that should
do it.

Arlen Ayojiak

that was exactly what my problem was, thanks so much for posting this
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top