Reply to Re: using hyperlinks as submit buttons

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация