|
Posted by jojo on 01/23/25 11:51
David Dorward schrieb:
> jojo wrote:
>
>> <script type="text/javascrit" language="javascript">
>> document.SomeForm.submit()
>> </script>
>> <body>
>> <form name="SomeForm" method="post" action="...">
>
>> Should work with all browsers.
>
> No it shouldn't.
>
> In browsers that do support JavaScript, it should cause them to go "Eh?
> What's this text/javascrit thing? I'll ignore that."
Just a spelling-error, of course it should be "text/javascript"
> In browsers that support JavaScript, and have JavaScript turned on and
> can recover from that error, it will cause them to go
> "document.SomeForm? Nope, haven't seen a document.SomeForm yet." and
> throw an error.
Yes, they have seen. Look at the form-tag...
And ASFAIK it is possible to call form-elements by thier name without
any "getElementById("")" or something else...
And if some Browser doesn't support that: document.forms[0].submit()
Or give the Form an ID and use document.getElementById("ID")
>
> In browsers that don't support JavaScript, or have JavaScript turned
> off, it will do nothing at all.
>
Yes, I know, but I think you missed the
> JavaScript is allowed.
[Back to original message]
|