<!DOCTYPE html>
<head>
</head>
<body>
<h3>js08_function2.html</h3>
<br /> <input type="button" value="Grüß mich" onclick=
"
function hallo() {
return 'hallo';
}
t1.innerHTML='Die Funktion hallo() gibt zurück: '+hallo()+String.fromCharCode(10)
;
"
/>
</br><textarea id="t1" rows="10" cols="60">
</textarea>
</body>
</html>
<!--
Wir haben hier ein einfaches Beispiel einer Funktion mit Rückgabewert.
-->