I am trying to submit a form after I select a record from a select box. Once a record is selected, a js function is called. I can reload my form using form.reload within my javascript function. But, whenever I try to use form.submit within my javascript function, I get the following error:
"Object doesn't support this property or method".
Here is my JS:
function blahblah()
{querystr="Anotherform.html?emailaddress=#emailaddress#"";
newWindow=window.open(querystr,'newWin','width=300,height=300,scrollbars=1,resizble=1');
newWindow.focus();
document.form.submit();}
The name of the form I want to submit is Property.html.
Why does form.reload work and form.submit does not? How can I get property.html to submit after I have selected the correct e-mail address from the drop-down?
"Object doesn't support this property or method".
Here is my JS:
function blahblah()
{querystr="Anotherform.html?emailaddress=#emailaddress#"";
newWindow=window.open(querystr,'newWin','width=300,height=300,scrollbars=1,resizble=1');
newWindow.focus();
document.form.submit();}
The name of the form I want to submit is Property.html.
Why does form.reload work and form.submit does not? How can I get property.html to submit after I have selected the correct e-mail address from the drop-down?