Pardot-tricks/saving.html

13 lines
382 B
HTML

<script>
document.forms['pardot-form'].onsubmit = function(){
var confirmationArea = document.getElementsByClassName("submit");
var button = confirmationArea[0];
for (var index = 0; index < button.childNodes.length; index++) {
if (button.childNodes[index].value == 'SUBMIT') {
button.childNodes[index].value = 'Saving...';
break;
}
}
}
</script>