Create DOM object holding an external page
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Create DOM object holding an external page

From: vhg119 <vincehgov@gmail.com>
Date: Fri Apr 28 2006 - 20:14:59 CEST

Is there a way to create a DOM document object to hold the contents of
an external html?

I have two pages:
content.html contains some content.
index.html would like to access the contents of a particular <div> with
an id of "important" within content.html.

how would I do this? I know I can hack around and load the
content.html in an iframe embedded in index.html. Then, I can make the
iframe not visible. But, If theres a better way to do this (an easier
way), I'd much rather take that approach.

Vince
Received on Mon May 1 05:25:56 2006