How to write a textual data into an iframe.

I have a html page on which there is an IFRAME, Buttin controls. When I click
on button I have to insert some data into an IFRAME. How can I do it.

regards
Kiran