0

How to get an interactive html element to run a js code

I Wil like, for example, to display an alert box why a user taps on a my <button> element

29th May 2019, 7:48 AM
ALAINGIRESSE ETONGO
ALAINGIRESSE ETONGO - avatar
2 ответов
0
<button onclick="urfunc()" . . .> ... <script> function urfunc(){ alert("Oh hi mark"); } </script>
29th May 2019, 9:50 AM
itsQuasar✅
itsQuasar✅ - avatar
0
Thanks
29th May 2019, 11:52 AM
ALAINGIRESSE ETONGO
ALAINGIRESSE ETONGO - avatar