- What is the difference between these two properties (contentDocument and contentWindow)?
- Is there any difference in the way they acces the content in the frame/iframe?
- Is there any performance issues?
- Should I use
contentXXXXX.document.getElementsBy...
orcontentXXXXX.getElementsBy...
?
I've been searching around in the web but haven't found too much information and before I did a big research I thought I could ask the great community here at stackoverflow. As a comment I'm doing a script that counts inputs on a web page, accessing all levels of frames or iframes and adding those inputs found inside the frames/iframes to the global count. All content is supposed to be from the same domain so no there should be no problems with same-origin-policy, I believe. For the script I'm using pure JavaScript no jQuery or any frameworks/libraries that make life easier u_u jaja. This is a practice script and if anyone would like a look at the code I'll post it, no problem. Thanks for anyone who takes the time to explain this!