J
John
I'd like to disable the submit button after the user clicks it once,
but currently the submit button i'm using has a confirm alert. I've
tried to nest the disable within the confirmIT script but it causes it
to by pass the script completely. Any ideas?
Thanks, John
<script LANGUAGE="JavaScript">
<!--
function confirmIT()
{
var agree=confirm("To proceed, click OK.");
if (agree)
return true ;
else
return false ;
}
// -->
</script>
OR
<script LANGUAGE="JavaScript">
<!--
function confirmIT()
{
var agree=confirm("To proceed, click OK.");
if (agree)
var thisBTN = document.getElementById('Submit');
thisBTN.disabled = true
return true ;
else
return false ;
}
// -->
</script>
but currently the submit button i'm using has a confirm alert. I've
tried to nest the disable within the confirmIT script but it causes it
to by pass the script completely. Any ideas?
Thanks, John
<script LANGUAGE="JavaScript">
<!--
function confirmIT()
{
var agree=confirm("To proceed, click OK.");
if (agree)
return true ;
else
return false ;
}
// -->
</script>
OR
<script LANGUAGE="JavaScript">
<!--
function confirmIT()
{
var agree=confirm("To proceed, click OK.");
if (agree)
var thisBTN = document.getElementById('Submit');
thisBTN.disabled = true
return true ;
else
return false ;
}
// -->
</script>