writing inline js functions code example
Example: how to use inline javascript in html
<input type="text" id="fname"
onkeyup="javascript:{console.log(window.event.key); alert('hello');}"
>
<input type="text" id="fname"
onkeyup="javascript:{console.log(window.event.key); alert('hello');}"
>