Search HouseOfScripts.com

 

All Scripts        JavaScripts        ASP Scripts        Other Scripts

 

  How to disable button and submit form asp, send, email, cdonts, link, recordset, hyper, hyperlink, create, list, box, dependant, dynamic

One of the questions that I had was how to disable button and submit form at the same time. The following code prevents them from doing this. If you do not need to submit form you can use Disable button after it was clicked code or Another Script to Disable Button after it was clicked.

Insert this into your HEAD section:

<SCRIPT LANGUAGE="JavaScript">

function Disab (val) {

if(val=="1")
{form1.Submit.disabled=true}

}

</SCRIPT>

This is the beginning of the FORM section:

<form name="form1" method="POST" action="<%=MM_editAction%>" onSubmit="Disab(1)">

 

 


Home       Scripts       Active WebTools       Web Templates       Forum       Tools        Hosting       Questions/Comments       Add/Request