Alex
December 10th, 2004, 10:15
I have this function:
function e() {
var field = document.frm.ids.value;
if(field == ' ') {
window.alert('Error: Field is empty.');
}
}
and the form:
<form name='frm' action='com/delete.php' method='post'>
<input type='text' size='45' name='ids' />
<input type='submit' name='DELETE' value='DELETE' onclick='javascript: e();' />
</form>
When I press the submit button nothing happens...
Any ideas?
function e() {
var field = document.frm.ids.value;
if(field == ' ') {
window.alert('Error: Field is empty.');
}
}
and the form:
<form name='frm' action='com/delete.php' method='post'>
<input type='text' size='45' name='ids' />
<input type='submit' name='DELETE' value='DELETE' onclick='javascript: e();' />
</form>
When I press the submit button nothing happens...
Any ideas?