Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What are the properties of IFrame in Netscape 6?

Status
Not open for further replies.

JasonXie

Programmer
Feb 4, 2001
20
0
0
NZ
I know Netscape6 now can support IFrame but ignoes the layer.
But I don't know the properties of IFrame in Netscape 6.

The syntax in IE5 to get the content of an IFrame is the below:
temp = document.frames['myIFrame'].document.body.innerHTML

I tried to convert it to suit the Netscape 6 but failed.
What I did is the following:
temp = document.getElementById("myIFrame").document.body.innerHTML

Is there anyone can help me to correct the javascipt above ?

(note:
I imported the external HTML files to myIFrame:
For IE:
document.frames['myIFrame'].document.location="myfile.html"
For N6:
document.getElementById("myIFrame").src="myfile.html"

They work fine.
)


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top