Hi, having fun with Javascrip again!! Can anyone tell me how to display information from a form using Javascript but without having o use a pop up? I wan to display the information ideally on another page I have created but if not on the same page. At the moment when you click the form it opens a pop up window.

This is my script....

<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function displayHTML(form) {
var inf = form.htmlDeserve.value;
var inf2 = form.htmlWant.value;
var inf3 = form.htmlCan.value;
var inf4 = form.htmlWill.value;
var inf5 = form.htmlAm.value;


win = window.open("", 'popup', 'toolbar = yes, status = no');
win.document.write("" + "<b>" + "I deserve to be " + "</b>" + inf + "<br>" + "<b>" + "I want to be " + "</b>" + inf2 + "<br>" + "<br>" + "<b>" + "I can be " + "</b>" + "<br>" + "<b>" + "I will be " + "</b>" + inf3 + "<br>" + "<B>" + "I am " + "</b>" + inf4 + "<br>" + "<b>" + "3. " + "</b>" + inf5 + "<br>" + "<br>" + "<br>" + "If you are happy with your Action Plan then click on the button below to print it" + "<html><head><title>popup</title></head><body><br><br>" + "<a href='print.html' onclick='window.print();return false;'>" + "<img src='images/printer.png' height='100px' width='100px'></a></body></html>" + "");
}
// End -->
</script>



my form....

<form id="form2" name="form1" method="post" action="">
<h1>I deserve to be
<label for="textfield7"></label>
<input type="text" name="htmlDeserve" id="textfield7" />
</h1>
<h1>I want to be
<label for="textfield8"></label>
<input type="text" name="htmlWant" id="textfield8" />
</h1>
<h1>I can be
<label for="textfield9"></label>
<input type="text" name="htmlCan" id="textfield9" />
</h1>
<h1>I will be
<label for="textfield10"></label>
<input type="text" name="htmlWill" id="textfield10" />
</h1>
<h1>I am
<label for="textfield11"></label>
<input type="text" name="htmlAm" id="textfield11" />
</h1>
<p>
<input type="button" value=" view " onclick="displayHTML(this.form)">
</p>
<label for="textfield12"></label>
</form>