Posted by Toby Inkster on 06/04/05 23:39
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
Navigation:
[Reply to this message]
|