john woo wrote:
> 1.
> <FORM name="Form1" id="InputForm" method="post" action="url">
> 4.
> <FORM name = "Form4" onsubmit=url>
> 1. when need to use "action"
Every time you use a form. Its a required attribute.
> 2. different in 4 and 1?
1 is sane.
4 attempts to treat a URL as some unspecified client side scripting (most
browsers will treat it as JavaScript, but you should specify this
explicitly
http://www.w3.org/TR/html4/interact/....html#h-18.2.2 (of
course URLs aren't JavaScript so this will just break))
> 3. if no button, how to triger submit?
http://ppewww.ph.gla.ac.uk/~flavell/...mquestion.html
(But its always a good idea to have a submit button)
> 4. the where/how to specify URL, in <form> tag or in its sub-tag?
The action attribute of the <form>.
> 5. when use onclick, onmouse to direct next page?
Its almost always a very bad idea to submit forms using anything other then
then a regular submit button with no need for client side scripting.
> 5. when use onsubmit to direct next page?
Never. Use this to stop the form being submitted when certain conditions are
or are not met with client side code (but don't depend on it working)
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is