You are here: Re: using hyperlinks as submit buttons « HTML « IT news, forums, messages
Re: using hyperlinks as submit buttons

Posted by David Dorward on 11/26/05 11:51

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."

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.

In browsers that don't support JavaScript, or have JavaScript turned
off, it will do nothing at all.

 

Navigation:

[Reply to this 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

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