Click to See Complete Forum and Search --> : Pulling content of the Body tag from a page


Calimero
11-11-2004, 04:22 AM
Howdy, this is the problem:


Is there a built in function or if someone has a code for pulling all the content from a Body of the page as a variable or an array to use it / write it somewhere else.

I tried with regular frames, Iframe - didn't succeed, so any of these two options will do.

Also I tried as an alternative the .txt file - if it is easier - is it possible to pull the content of the text file and make it a variable.


I'm relatively new to JS, so if any built in functions or code snippets - post 'em

Thanks Ahead !

Charles
11-11-2004, 04:40 AM
JavaScript runs in something like a sand box, it cannot communicate with the outside world. However, it quite a simple thing to grab something from somewhere else on the same page. ( http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/ ) I'm not sure which you are up to.