J
jivanmukta
Hello,
I have such problem that on my page two windows (alert and confirm)
appear together. Here is the code:
<head>
<script type="text/javascript">
function check(elem) { if (elem.value b³êdna) alert('Invalid
value.'); }
</script>
</head>
<body>
<form ...>
<input type="text" onblur="check(this);">
<input type="button" onclick="if (confirm('Are you
sure?')) ...submit
();">
</form>
</body>
First window is alert (called onblur) and the second one is confirm
(called
onclick). I want to achieve validation onblur (field-after-field
validation) and validation onclick (summary-like validation). I don't
know how to write it correctly.
Please help. Thanks in advance.
I have such problem that on my page two windows (alert and confirm)
appear together. Here is the code:
<head>
<script type="text/javascript">
function check(elem) { if (elem.value b³êdna) alert('Invalid
value.'); }
</script>
</head>
<body>
<form ...>
<input type="text" onblur="check(this);">
<input type="button" onclick="if (confirm('Are you
sure?')) ...submit
();">
</form>
</body>
First window is alert (called onblur) and the second one is confirm
(called
onclick). I want to achieve validation onblur (field-after-field
validation) and validation onclick (summary-like validation). I don't
know how to write it correctly.
Please help. Thanks in advance.