23
rated 0 times
[
30]
[
7]
/ answers: 1 / hits: 62291
/ 14 Years ago, sun, november 21, 2010, 12:00:00
What I would like to be able to do is create a string from a Javascript HTMLElement Object. For example:
var day = document.createElement(div);
day.className = day;
day.textContent = Random Text;
Now we have create the day
HTMLDivElement Object is it possible to make it print as a string? e.g.
<div class=day>Random Text</div>
More From » arrays