Reply to Re: Convert form to submit on load instead of clicking submit button?

Your name:

Reply:


Posted by Network-Man on 06/05/05 05:23

Toby,
It worked like a charm.
I knew it would have something to do an "onload" statement, but that's as
close as I could get.
Thanks.

-Joel

"Toby Inkster" <usenet200504@tobyinkster.co.uk> wrote in message
news:pan.2005.06.04.20.39.41.272607@tobyinkster.co.uk...
> Network-Man wrote:
>
> > I am trying to streamline a form that in itself streamlines logging into
a
> > site. Is there a way to make a form submit "onload" without clicking a
> > submit button?
>
> <form id="foo">
> ...
> </form>
> <script type="text/javascript">
> function myfunc () {
> var frm = document.getElementById("foo");
> frm.submit();
> }
> window.onload = myfunc;
> </script>
>
> --
> Toby A Inkster BSc (Hons) ARCS
> Contact Me ~ http://tobyinkster.co.uk/contact
>

[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

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