hmm. i now have:
code:
function submitForm(id) {
var formId = getElem(id);
var confSub = confirm("Test");
if(confSub == true) {
formId.submit();
}
else {
formId.reset();
}
}
btw getElem() is:
code:
function getElem(id) {
var divid = document.getElementById(id);
return divid;
}
and I have:
code:
<form id="hostsu" method='POST'>
<<form here>>
<input type="button" onclick="submitForm('hostsu');" value="Submit">
Clicking the button just does nothing...