body.tagname is null or not an object

  • Thread starter Thread starter Arlen Ayojiak
  • Start date Start date
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
 
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
 
Back
Top