I am having a problem using the document.write function to write out some HTML code to a hta file. When I run it, it throws the invalid character error.
I'm assuming the invalid character is caused by quotation marks that are in the string variable. Is there anyway to successfully retain those quotations in the string? Here is part of the string that needs outputted:
I got this from a textarea that I set the .value property equal to the string variable I'm trying to use with document.write function.
I'm assuming the invalid character is caused by quotation marks that are in the string variable. Is there anyway to successfully retain those quotations in the string? Here is part of the string that needs outputted:
Code:
ul.tree{
display:none;
margin-left:17px;
}
li.folder{
list-style-image: url("images/plus.gif");
}
li.folderOpen{
list-style-image: url("images/minus.gif");
}
li.file{
list-style-image: url("images/dot.gif");
}
a.treeview{
color:Navy;font-family:verdana;font-size:8pt;
}
a.treeview:link {
text-decoration:none;
}
a.treeview:visited{
text-decoration:none;
}
a.treeview:hover {
text-decoration:underline;
}
</style>
<ul id="N">
<li class="folder" id="P1">
I got this from a textarea that I set the .value property equal to the string variable I'm trying to use with document.write function.