By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,934 Members | 1,441 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,934 IT Pros & Developers. It's quick & easy.

document.write writing to a specific division or location

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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.