Feedback on: irt.org FAQ Knowledge Base Q593
Worth:
Very worth reading
Length:
Just right
Technical:
Just right
Comments:
Thanks, just what I needed
Comments:
This does not work with IE4.
IE4 will ignore
window.document.form[name].submit();
Dunno why, it works when you make the call from a button but not from <a>. Isn't that queer.
Unless of course anyone knows better. (I suspect I'm not the only one who has tried this, then tested it in legacy browsers and wept like a scolded child...)
Worth:
Length:
Technical:
Comments:
It's plain to see from the example, but it took me a while to appreciate that the javascript link needs to be called from outside the form.
Also, if you want the link to return the form to somewhere different than the main action of the form, or have several links returning the form to several different places, add a line in the javascript function to alter the action.
<script language="JavaScript"><!--
function func_name111() {
document.form.action="some_place.html";
document.form_name.submit();
}
//--></script>
<script language="JavaScript"><!--
function func_name222() {
document.form.action="some_other_place.html";
document.form_name.submit();
}
//--></script>
Worth:
Very worth reading
Length:
Just right
Technical:
Just right
Comments:
Gravy baby. Thanks