471,317 Members | 2,156 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,317 software developers and data experts.

document.write writing to a specific division or location

In searching answers to my quest, I have been looking for a method using
document.write to display the thumbnails in one division while showing text
about the thumbs in another division.
All I've seen so far is that document.write('does this') and that's it.
Nobody expands on this and explains what else you can do with it.
It's like they're more interested in showing you the ads than the
information you need.

Anyone have a site where document.write is discussed in depth?
Jul 23 '05 #1
2 4571
Richard wrote:
In searching answers to my quest, I have been looking for a method using
document.write to display the thumbnails in one division while showing text
about the thumbs in another division.
All I've seen so far is that document.write('does this') and that's it.
Nobody expands on this and explains what else you can do with it.
It's like they're more interested in showing you the ads than the
information you need.

Anyone have a site where document.write is discussed in depth?


Throw in all the HTML you want there, I suppose.

But really you shouldn't be using it. Play with the DOM instead. You'll
need to refer to some other source since it's a big topic.

Brett
Jul 23 '05 #2
Richard wrote:
In searching answers to my quest, I have been looking for a method using
document.write to display the thumbnails in one division while showing text
about the thumbs in another division.
All I've seen so far is that document.write('does this') and that's it.
Nobody expands on this and explains what else you can do with it.
It's like they're more interested in showing you the ads than the
information you need.

Anyone have a site where document.write is discussed in depth?


If you document.write to a page after it's loaded, it destroys the page
itself. Which means you can't do what you are wanting to do. Read the
group FAQ and find DynWrite which does what you are wanting to do.
http://jibbering.com/faq/#FAQ4_15

There are also ways to change a current page without using innerHTML but
innerHTML seems to be the most cross-browser/reliable way to attempt to
do it.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq
Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Johannes Busse | last post: by
8 posts views Thread by Greg Brant | last post: by
3 posts views Thread by Ike | last post: by
13 posts views Thread by Stumped and Confused | last post: by
2 posts views Thread by Muffinman | last post: by
12 posts views Thread by Sean | last post: by
9 posts views Thread by alu | last post: by
136 posts views Thread by Matt Kruse | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.