3 document.form.fromModal.value =
4 showModalDialog("modal-dialog.html",
5 document.form.toModal.value,
6 "dialogHeight:280px,dialogWidth:400px");
10 <p>Type text here to be sent to the modal window and press the button:
11 <input name="toModal" value="from main window">
12 <input type="button" value="Show Modal" onClick="showModal()"></p>
14 <p>Text will appear here from the modal window: <input name="fromModal">