Topic: Simple question about document.submit |
|
---|---|
Author | Thread |
Nervous Wreck (II) Inmate From: Stockholm, Sweden |
![]() ![]() ![]() ![]() Tearing my hair out here. |
Maniac (V) Inmate From: |
![]() ![]() ![]() ![]() You need to access a collection, like document.forms["myform_3489"] or document.getElementById("myform_3489") |
Nervous Wreck (II) Inmate From: Stockholm, Sweden |
![]() ![]() ![]() ![]() |
Paranoid (IV) Inmate From: Australia |
![]() ![]() ![]() ![]() You can use document.formName.submit , in IE at least - not sure if other browsers like this however. The way you mentioned is probably more browser friendly. |
Maniac (V) Inmate From: |
![]() ![]() ![]() ![]() The way he chose is correct, dom and w3c wise. therefore compatible. |
Nervous Wreck (II) Inmate From: Stockholm, Sweden |
![]() ![]() ![]() ![]() |
Neurotic (0) Inmate Newly admitted From: |
![]() ![]() ![]() ![]() it is working fine with all browsers except opera. |