All,
I have the following function which takes a value from a text input box, then onclick of a button, opens another small window with the value displayed in it. However, if I don't put the alert in the script, the function doesn't work. Any ideas??
function openwindow() {
userwindow = window.open("remote.html","widthwindow", "toolbars=no, menubars=no, width=200, dependent=true, location=no, height=300, resizeable=no" );
alert();
userwindow.document.calWidth.receiver.value=document.myform.mywidth.value
}
text box code
<pre>width:
<input
type=text
value=""
id=widthbox
size=5
maxlength=5
name=mywidth>
button code
<input
type="button"
value="open window"
onClick="openwindow();">
Thanks
Steve
I have the following function which takes a value from a text input box, then onclick of a button, opens another small window with the value displayed in it. However, if I don't put the alert in the script, the function doesn't work. Any ideas??
function openwindow() {
userwindow = window.open("remote.html","widthwindow", "toolbars=no, menubars=no, width=200, dependent=true, location=no, height=300, resizeable=no" );
alert();
userwindow.document.calWidth.receiver.value=document.myform.mywidth.value
}
text box code
<pre>width:
<input
type=text
value=""
id=widthbox
size=5
maxlength=5
name=mywidth>
button code
<input
type="button"
value="open window"
onClick="openwindow();">
Thanks
Steve