...

View Full Version : Get html from an element, pass to new window?



zephyros
03-15-2004, 05:07 PM
How can I grab the html from an object in the page so I can pass it to a new window?

I can the reference to an object by ID:

document.getElementByID( “myPanelContainingSomeTables” )

But I’m not sure how to get the HTML contained in that element. If I can get that, than I can store it in a variable and pass that string to the new window.


Thanks for any help!

Willy Duitt
03-15-2004, 06:20 PM
Try using innerHTML

eg: document.getElementByID( “myPanelContainingSomeTables” ).innerHTML

.....Willy

zephyros
03-16-2004, 07:50 PM
Thanks!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum