How to: Submit a Form Using JavaScript

Ecco come eseguire un submit via javascript.

<form name=”myform” action=”handle-data.php”>
Search: <input type=’text’ name=’query’>
<
A href=”javascript: submitform()”>Search</A>
<
/form>
<SCRIPT language=”JavaScript”>
function submitform()
{
document.myform.submit();
}
</SCRIPT>

Fonte: How to Submit a Form Using JavaScript

powered by IMHO 1.3

Rispondi