Lets say I have an I-frame called blah.
I want to add text to it and I have this function:

Code:
function addSmiley(textToAdd)
{
  var thewindow = window.frames['blah'];
  thewindow.document.open();
  thewindow.document.write(+textToAdd);
  thewindow.document.close();
 
}
Unfortunately, when I click on the smiley, it completely replaces all the text in the Iframe with the symbol for that smiley. How do I get it to add the symbol for the smiley to the text already there.

Basically I want to know the object property for all the text currently in the I-frame.

Its not thewindow.document.value like I thought it was.