faqts : Computers : Programming : Languages : JavaScript : Document

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

7 of 13 people (54%) answered Yes
Recently 3 of 8 people (38%) answered Yes

Entry

How do I display intermediate document.write HTML (before </script>)?

Apr 30th, 2001 04:16
Colin Fraser, Gil Tayar,


This question is a little confused as to what it asks, but if I am 
reading it right what you want to know is this: 
<script language="javascript">
//create a table
document.write(" <p><table width=100% border=1>")
document.write(" <tr><td align=center>")
document.write("One </td><td> Two")
document.write(" </td></tr>")
document.write(" <tr><td align=center>")
document.write("Three </td><td> Four")
document.write(" </td></tr>")
document.write(" </table>")
</script>
Be very careful about using single and double quote marks.  I am sure 
there was a question about quote marks in the DHTML section. 
I hope this is what you are asking, if not then please post another 
question.