Eternity Angel
07-15-2002, 01:38 AM
Greetings.
I would just LOVE to spend ANOTHER 4 hours trying to figure this out, or go through another 4 tutorials that lead me nowhere (not), but instead, I've come HERE for help.
I want something VERY simple.
I want a button, that when clicked, opens another window and in that window, I want the contents of a textbox on the first window, as HTML!
Possible?
Here's how I've got it, and it no worky (bare with my poor skills, I was only going by common knowledge):
function preview()
{
var previewbody = window.document.done.complete.value;
window.open('test.html','testwindow','height=440,width=600');
testwindow.document.write(previewbody);
}
<form name=done>
<textarea rows=30 name="complete" style="width=100%">
</textarea>
</form>
<input type="submit" value="Preview" onclick="preview();"
Any help would be appreciated.
I would just LOVE to spend ANOTHER 4 hours trying to figure this out, or go through another 4 tutorials that lead me nowhere (not), but instead, I've come HERE for help.
I want something VERY simple.
I want a button, that when clicked, opens another window and in that window, I want the contents of a textbox on the first window, as HTML!
Possible?
Here's how I've got it, and it no worky (bare with my poor skills, I was only going by common knowledge):
function preview()
{
var previewbody = window.document.done.complete.value;
window.open('test.html','testwindow','height=440,width=600');
testwindow.document.write(previewbody);
}
<form name=done>
<textarea rows=30 name="complete" style="width=100%">
</textarea>
</form>
<input type="submit" value="Preview" onclick="preview();"
Any help would be appreciated.