Debt Consolidation - Investment Articles Directory - Find jobs - Arcade Games - William Hill Vouchers

PDA

View Full Version : Is there an alternative to document.body.innterHTML ?


arbos
May 8th 2006, 4:39 pm
I'm working on a little script that works with iframes and want to find and grab something from the users page inner HTML. I hear that using document.body.innterHTML is frowned upon and should be avoided.

is there another method within PHP or javascript that will allow somebody to look into the innerHTML (users source of your page) of the visitors page in order to extract certain data?

Would anyone be able to provide me with an example of how document.body.innerHTML (or an alternative) would be used to find and grab something?

Sorry I'm an offline developer and just now picking up PHP, JAVA, and a little AS to get caught up on this ajax hoopla so I apologize again for all the questions that may seem rather simple.

Slapyo
May 10th 2006, 8:34 am
http://www.webreference.com/js/tips/000812.html

This article describes the differences between innerText, outerText, innerHTML, and outerHTML. I've never heard that using innerHTML is frowned upon.