Click to See Complete Forum and Search --> : Create-A-Page


David Harrison
02-21-2003, 04:04 PM
I can create a pop-up window using javascript, but unfortunately as soon as the window is closed the page, effectively, no longer exists.

So how do I create a page depending on what is entered in, say, a, simple, text box.

On the computer it's going to be used on there is no internet access.

zachzach
02-23-2003, 08:03 PM
here is a code:
(put it as the page that makes the window)
(help: mailto:kidsite2003@yahoo.com )

<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function makepage(form) {
var inf = form.textbox1.value;
win = window.open(", ", 'popup', 'toolbar = yes, status = yes');
win.document.write("<p>Your content here, but make sure, if you use forms, they have SINGLE quotes[ ' ], like this:<br><input type='button' value='Look at the HTML'><br></p>");
win.document.write("<p>" + "You wrote:" + inf + "</p>");
}
// End -->
</script>
</HEAD>
<BODY>
<center>
<form>
<textarea name="textbox1" cols=45 rows=6>
</textarea>
<br>
<input type="button" value=" View " onclick="makepage(this.form)">
</form>
</center>
</BODY>
</HTML>