'm trying to get the code below to keep an E-mail form deactivated until 6 seconds after the page is fully loaded but it hasn't been working. Please help me.
var inActive = true;
function inActive() {
if (!inActive)
return true;
inActive = true;
document.getElementById("myForm").disabled = true;
setTimeout(function() {
inActive = true;
document.getElementById("myForm").disabled = false;
}, 1000);
return true;
}



Reply With Quote

Bookmarks