how to create inline function in javascript 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');}"
>