Moin!
Spielzeug:
<html>
<script>
function checkbutton(v) {
alert ('checkbutton');
return v;
}
function notemsgbefore() {
alert ('notemsgbefore');
return 1;
}
</script>
<button onclick="checkbutton(true) && notemsgbefore();">true and</button>
<button onclick="checkbutton(false) && notemsgbefore();">false and</button>
<button onclick="checkbutton(true) || notemsgbefore();">true or</button>
<button onclick="checkbutton(false) || notemsgbefore();">false or</button>
</html>
Abgesehen davon, dass button onclick dermaßen aus der Mode ist...
Jörg Reinholz