"Fred Geurtsen" <f.********@simstones.nl> wrote in message
news:41*********************@reader2.nntp.hccnet.n l...
Hi,
My question is how I can send a form without having to push on a
submit button? I need to send a form with method post just by loading the
hidden textboxes and send them right away. Anyone got the anser?
<head>
<script type="text/javascript">
window.onload = function() {
document.forms['myForm'].submit();
}
</script>
</head>
<body>
<form name="myForm">
or
<body onload="document.forms['myForm'].submit();">
<form name="myForm">
Most user agents will present the user with a prompt asking them if they
really want to submit the form. No, there is no way to get around that.
--
Grant Wagner <gw*****@agricoreunited.com>
comp.lang.javascript FAQ -
http://jibbering.com/faq