onload auto click of Submit button

J

Jasonc

in short this is what i want to achieve.

an 'onload auto submit'

this is what i want it for.

i use a intranet at work, when staff visit a page it already has the
files selected depending no how it is that has visited, all i want is for
the page
to auto click the GO button, to save then doing it.
how do i have a page auto click this button?
maybe something on the lines of <onload ....> ??


these files are agendas and each person has only interest in some, so using
cookies i have set up what ones they want and when the open the page it then
downloads the files the want and not all of them, i am trying to save time
sending out emails to everyone with just the doc's they want, this is very
time consuming. so hence the script to do it.

all i need is to have a bit in there in the form part to auto execute it, or
SEND when the page is looked at.

thanks in advance.

Jason
 
J

Jon Spivey

Hi,
you can either do
document.YourFormName.submit();
or
document.YourFormName.YourButton.click();
 
J

Jasonc

lets say that this is my form where would i put this code in.

thanks very much for getting back to me.

Jason


--------------------------------------

<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
</head>

<body>

<form method="POST" action="--WEBBOT-SELF--">
<!--webbot bot="SaveResults" U-File="fpweb:///_private/form_results.csv"
S-Format="TEXT/CSV" S-Label-Fields="TRUE" --><p>
<input type="radio" name="R1" value="V2"></p>
<p><input type="radio" value="V3" name="R1" checked></p>
<p><input type="radio" name="R1" value="V4"></p>
<p><input type="submit" value="Submit" name="B1"></p>
</form>

</body>

</html>


----------------------------------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top