how would i delete text from a page made by document.write() command
Apr 6th, 2008 19:57
ha mo, Colin Fraser, Simon Horlick,
I do understand that there is not a lot of space to ask very difficult
questions, so I can only respond in the same general tone. Your question
does not refer to the conditions under which you may want to change a
page. Having said that you may want to follow up and find information
Boolean conditionals and IF statements
Arrays and pages
innerHTML and innerTEXT
The real problem I can see is determining what needs be written in
response to what conditions exist and when those conditions change.
Using the browser as a condition :
is easy. As well, using User responses is also easy
name=prompt("What is your name?"," ")
**these examples are for illustration only.**
Arrays are different and I dont want to give an example here, too long
to explain, but I understand the W3C Schools has information on
and can explain it better than me.. It is not too difficult to assign
pages as array values or use different array values to wite different
blocks of text, providing that you have set your arrays up correctly.
As far as I am aware, innerHTML and innerTEXT are, for the moment, IE
specific, but I have been told that Netscape6.x will handle them
adequately, so you may want to look at Microsoft's MSDN for information...
however, using the Dark Side for anything can be dangerous...
However, be aware that the more complex your coding is the longer it
will take to load a page, and the more things can go wrong and turn your
brilliant page into trash efficiently and with style....