@CharlesJun 22.2009 — #document.form.getElementbyID("textareaID").value = 'hello'[/QUOTE]That's kind of a DOM level 0 / DOM level 1 hybrid, not that there is anything wrong with that. [i]// DOM level 0[/i]
document.getElementById ('[i]textareaID[/i]').appendChild (document.createTextNode ('hello'))The level 0 method can be further simplified but I would have to see the context.
@hacketauthorJun 22.2009 — #Actually I'm going to change where I'm going with this. What I'm attempting to do is call the 'SaveAs' dialouge box so that when a person hits a button on my site, it will prompt them into saving the page. However, all the info on the page is contained in JS variables and so it all disappears when I open the saved page.
What I was trying to do is save all the values into a textarea, but I can see this will be clumsy at best.
Does anyone know of a way to change all the values in the variables to 'savable HTML'....if you know what I mean?
@hacketauthorJun 22.2009 — #Nevermind I solved it. Just called a window.print() function and then have the user select PDF Print to save a soft copy. It's a lot easier than what I was doing.