java - Show alert when form submitted -


İ have form. when user click submit button, want show alert , submit form.

here code sample.

<form action="domakeapplication" method="post">                                          <td>             <button class="btn type7 color1" type="submit" id="makeapplication" onclick="makeapp();return false"  >başvur</button>             </td>             <input type="hidden" th:value="${jobadvert.company.companyname}" name="companyname"  ></input>             <input type="hidden" th:value="${jobadvert.company.id}" name="companyid"  ></input>             <input type="hidden" th:value="${jobadvert.id}" name="advertid" ></input>                                </form>  

this should trick:

<form action="domakeapplication" method="post" onsubmit="alert('you submitted form');"> 

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -