inserting <br /> (enter) into textarea
I'm trying to click a link and insert some text into a textarea. I can do this by
But I want to insert it like when you hit the enter key, so there is the return spaces in it. I tried using <br> but that shows up since it is viewed as a string. I tried using .innerHTML instead of .value and that didn't work, least it didn't in Firefox. There a way to do this? If not I'll have to turn it into [br] and change it to <br> after submission.
document.getElementById("comment").value = insertedtext;