CdnBacon
09-08-2002, 07:11 PM
I am brand spankin new to JavaScript!!!
Although it seems cool, I am already having trouble...
For an assignment, our teacher is asking us to simply take a couple of paragraphs that he wrote and display them the same way but using only document.write.
Question 1: Is it proper to make each paragraph its own document.write or put all the paragraphs into one?
Question 2: This is the only one that doesn't seem to be working... no error, but won't show in browser...
<script language="JAVASCRIPT" type="TEXT/JAVASCRIPT">
document.write("<ul>
<li />Arithmetic: evaluates to a number, for example 3.14159
<li />String: evaluates to a character string, for example, \"Fred\" or \"234\"
<li />Logical: evaluates to true or false
</ul>
<p />");
</script>
Thanks,
CdnBacon
Although it seems cool, I am already having trouble...
For an assignment, our teacher is asking us to simply take a couple of paragraphs that he wrote and display them the same way but using only document.write.
Question 1: Is it proper to make each paragraph its own document.write or put all the paragraphs into one?
Question 2: This is the only one that doesn't seem to be working... no error, but won't show in browser...
<script language="JAVASCRIPT" type="TEXT/JAVASCRIPT">
document.write("<ul>
<li />Arithmetic: evaluates to a number, for example 3.14159
<li />String: evaluates to a character string, for example, \"Fred\" or \"234\"
<li />Logical: evaluates to true or false
</ul>
<p />");
</script>
Thanks,
CdnBacon