Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: form submission


Message #1 by "Roger Collis" <racol@g...> on Tue, 23 Oct 2001 15:17:14
Use inline script:

<script language="JavaScript">
	document.formname.submit();
</script>

Or the body OnLoad event:

<body onLoad="document.fromname.submit();">

-----Original Message-----
From: Roger Collis [mailto:racol@g...]
Sent: Tuesday, October 23, 2001 3:17 PM
To: javascript
Subject: [javascript] form submission

Can anyone tell me how to submit an HTML form to the server automatically,
WITHOUT having to click a button? The form is populated with hidden fields
for submission to a database and I want the process to happen when the
page loads or when the page unloads.

Roger Collis
North Wales UK

  Return to Index