Microsoft KB Archive/166210

= HOWTO: Submitting a Form From an Anchor (). =

Article ID: 166210

Article Last Modified on 11/17/2003

-

APPLIES TO


 * Microsoft JScript 1.0
 * Microsoft JScript 3.0
 * Microsoft JScript 5.0

-



This article was previously published under Q166210



SUMMARY
This article describes how a form can be submitted to a server through the use of an anchor. It uses the little-known ability of JScript that allows you to run a script from an anchor without using events.



MORE INFORMATION
There are two simple steps to submitting a form from an anchor:   Be sure the form has values for the NAME, ACTION, and METHOD properties. The NAME and ACTION properties are the only required ones, but it is a good idea to supply the METHOD also, for example:     Call a one-line script from an anchor. In the script, call the submit method of the form, for example:  Something  NOTE: JavaScript is case-sensitive, so submit must be spelled all lowercase. 

