My question refers to a javascript I'm working on.
I have a form which displays its output in a textarea on the same page. This part is working well, but what I'm trying to do (without success!) is create a button which, when clicked, will open a new window which contains (only) the contents of that textarea. I should also add that the original form is in a frame.

Is it possible to do this?! I've been looking for information on the web (even in official documentation) but nothing I've tried has worked. I'd appreciate any & all help!