Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

write div contents to another window? 1

Status
Not open for further replies.

jlsmithhartfiel

Programmer
Jan 7, 2002
336
US
Hi!

I have one page that has a div which has information in it. What I'd like to do is open a new window & output the div's contents to the new window.

Is this possible?

Also, If I output information to a div that I have hidden, does this affect the rendering time to the browser? I have a lot of data that I need to display & am wondering if it's hidden if it will take a shorter time to display than if it was all visible.

Thanks in advance! Jessica [ponytails2]
 
1. yes - you should be able to get the contents using innerText or innerHTML (i forget which is cross-browser)

2. probably not: the browser still has to download the source. the actual "rendering" time - the time the browser takes to turn the HTML into eye goodies - is most likely insignificant compared to the download time. just a guess though

=========================================================
if (!succeed) try();
-jeff
 
Thanks, jemminger!

1. Worked great. Forgot about that.
2. That's what I thought. :) Jessica [ponytails2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top