By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,850 Members | 1,895 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,850 IT Pros & Developers. It's quick & easy.

frame collection versus gEBI

P: n/a
If I have an IFRAME named and ID'd "main" why is it that while

document.frames["main"].name
==
document.getElementById("main").name
document.frames["main"]
!=
document.getElementById("main")
?

Andrew Poulos
Oct 29 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Oct 28, 9:22*pm, Andrew Poulos <ap_p...@hotmail.comwrote:
If I have an IFRAME named and ID'd "main" why is it that while

document.frames["main"].name
That is an odd mix of bracket and dot notation. Why not
document.frames.main.name?
==
document.getElementById("main").name
Certainly that assertion should be true.
>
document.frames["main"]
!=
document.getElementById("main")
The first one is a window object. The other is an element. Of course
they are not equal. (!)
Oct 29 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.