This seems to work
Test.htm:
=================
<input id="Data" type="text">
<button onClick="MakeDialog()">Dialog</button>
<div id="Output"></div>
<script language="JavaScript">
var dlg=null;
function MakeDialog() {
dlg = showModalDialog("TestDialog.htm",Data);
}
</script>
================
TestDialog.htm:
================
<input id="Data" type="text" onChange="UpdateData()">
<script language="JavaScript">
Data.value = dialogArguments.value;
function UpdateData(obj) {
dialogArguments.value = Data.value;
}
</script>
================
"Matt" <jrefactors (AT) hotmail (DOT) com> wrote
Quote:
I have 2 html pages, both have a text box and a button. In page1.html,
when the user enter a text in text box, and click button, it will pass
the form data to page2.html, and it will open page2.html in a smaller
window and that data will show in text box in page2.html. In
page2.html, if the user changes the text box data and click the
button, it will update the data in existing window for page1.html. In
other words, data can transfer back and forth in page1.html and
page2.html. |