onClick 2 returns?
bearbeitet von Jörg ReinholzMoin!
Spielzeug:
~~~ html
<html>
<script>
function checkbutton(v) {
alert ('checkbutton');
return v;
}
function notemsgbefore() {
alert ('notemsgbefore');
return 1;
}
</script>
<button onclick="checkbutton(true) && notemsgbefore();">Klick 1</button>
<button onclick="checkbutton(false) && notemsgbefore();">Klick 2</button>
<button onclick="checkbutton(true) || notemsgbefore();">Klick 3</button>
<button onclick="checkbutton(false) || notemsgbefore();">Klick 4</button>
</html>
~~~
[Abgesehen davon, dass button onclick dermaßen aus der Mode ist](http://molily.de/js/event-handling-fortgeschritten.html)...
Jörg Reinholz
onClick 2 returns?
bearbeitet von Jörg ReinholzMoin!
Spielzeug:
~~~ html
<html>
<script>
function checkbutton(v) {
alert ('checkbutton');
return v;
}
function notemsgbefore() {
alert ('notemsgbefore');
return 1;
}
</script>
<button onclick="checkbutton(true) && notemsgbefore();">Klick 1</button>
<button onclick="checkbutton(false) && notemsgbefore();">Klick 2</button>
<button onclick="checkbutton(true) || notemsgbefore();">Klick 3</button>
<button onclick="checkbutton(false) || notemsgbefore();">Klick 4</button>
</html>
~~~
[Abgesehen davon, dass button onclick dermaßen aus der Mode ist](http://molily.de/js/event-handling-fortgeschritten.html)...
Jörg Reinholz
onClick 2 returns?
bearbeitet von Jörg ReinholzMoin!
Spielzeug:
~~~ html
<html>
<script>
function checkbutton(v) {
alert ('checkbutton');
return v;
}
function notemsgbefore() {
alert ('notemsgbefore');
return 1;
}
</script>
<button onclick="checkbutton(true) && notemsgbefore();">Klick 1</button>
<button onclick="checkbutton(false) && notemsgbefore();">Klick 2</button>
<button onclick="checkbutton(true) || notemsgbefore();">Klick 3</button>
<button onclick="checkbutton(false) || notemsgbefore();">Klick 3</button>
</html>
~~~
[Abgesehen davon, dass button onclick dermaßen aus der Mode ist](http://molily.de/js/event-handling-fortgeschritten.html)...
Jörg Reinholz
onClick 2 returns?
bearbeitet von Jörg ReinholzMoin!
~~~ html
<html>
<script>
function checkbutton(v) {
alert ('checkbutton');
return v;
}
function notemsgbefore() {
alert ('notemsgbefore');
return 1;
}
</script>
<button onclick="checkbutton(true) && notemsgbefore();">Klick 1</button>
<button onclick="checkbutton(false) && notemsgbefore();">Klick 2</button>
<button onclick="checkbutton(true) || notemsgbefore();">Klick 3</button>
<button onclick="checkbutton(false) || notemsgbefore();">Klick 3</button>
</html>
~~~
[Abgesehen davon, dass button onclick dermaßen aus der Mode ist](http://molily.de/js/event-handling-fortgeschritten.html)...
Jörg Reinholz