J
john woo
Hi
I'm not good at javascript and wondering the difference, URL in FORM
tag and in INPUT tag.
ex
1.
<FORM name="Form1" id="InputForm" method="post" action="url">
<INPUT TYPE="HIDDEN" NAME="nn" VALUE="">
2.
<form name="Form2">
<table ID="SelectPanelTable"...>
<tr> <TD ID="TD".. onmouseup=function()>
3.
<FORM name = "Form3">
<INPUT TYPE=Hidden NAME="aa"
4.
<FORM name = "Form4" onsubmit=url>
<INPUT TYPE=Hidden NAME="aa"..>
5.
<FORM name = "Form5" onsubmit=url>
<INPUT TYPE=button NAME="aa"..>
questions from above cases:
1. when need to use "action"
2. different in 4 and 1?
3. if no button, how to triger submit?
4. the where/how to specify URL, in <form> tag or in its sub-tag?
5. when use onclick, onsubmit,onmouse to direct next page?
I'm not good at javascript and wondering the difference, URL in FORM
tag and in INPUT tag.
ex
1.
<FORM name="Form1" id="InputForm" method="post" action="url">
<INPUT TYPE="HIDDEN" NAME="nn" VALUE="">
2.
<form name="Form2">
<table ID="SelectPanelTable"...>
<tr> <TD ID="TD".. onmouseup=function()>
3.
<FORM name = "Form3">
<INPUT TYPE=Hidden NAME="aa"
4.
<FORM name = "Form4" onsubmit=url>
<INPUT TYPE=Hidden NAME="aa"..>
5.
<FORM name = "Form5" onsubmit=url>
<INPUT TYPE=button NAME="aa"..>
questions from above cases:
1. when need to use "action"
2. different in 4 and 1?
3. if no button, how to triger submit?
4. the where/how to specify URL, in <form> tag or in its sub-tag?
5. when use onclick, onsubmit,onmouse to direct next page?