Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

submit a form from a subroutine, with no button 1

Status
Not open for further replies.

fergman

Technical User
Oct 19, 2000
91
US
I have a sub that after it's run I want it to submit a form.
Is there a way to do this without user interaction?
either javascript, or vbscript.
 
You can submit the page using javascript without the user intervention. After running your subroutine, just right following javascript code:

<script langauge=&quot;javascript&quot;>

document.forms[0].action=&quot;somefile.asp&quot;;
document.forms[0].submit();

</script>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top