do*****@webtv.net (Papajo) wrote in news:5644-43BF2BEE-207@storefull-
3332.bay.webtv.net:
**I'd like to know how to add break tags "<br>" inbetween entry's in
an input form, an example is if the word "yada yada" was entered you
would wind up with y<br>a<br>d<br>a<br> y<br>a<br>d<br>a
You are likely interested in learning about how to manipulate documents
with DOM methods.
I would like to able to add the break tags with a button onClick. I have
no idea where to start
Start with the following:
http://www.w3.org/DOM/ http://developer.mozilla.org/en/docs...y:DOM:Articles
The short lesson is that a document's structure and style can be
"objectified". Paragraph(s), sentences, words, characters---printable and
otherwise---can be treated as objects and properties gotten or set and
methods used to alter the objects. The document is structured as a TREE
with branch points (NODES). The document is rendered as a tree in this way
by the document reader/parser when initially loaded/read, but through these
DOM methods in script, these nodes can be INSERTED/APPENDED or REMOVED to
modify the document structure dynamically. A very simplified explanation.