[Gambas-user] Embedding WebButton_Click() or WebMenu_Click() inside a javascript

Safiur Rahman isafiur at gmail.com
Mon Jul 26 05:49:16 CEST 2021


Hi Benoît

How can I embed WebButton_Click() or WebMenu_Click() inside a
javascript. I want to specify a short cut for WebButton Click and
WebMenu Click using mousetrap.js
https://github.com/ccampbell/mousetrap

For example this works:
<script>
  Mousetrap.bind('ctrl+s', function() {
    alert('control + s');
  });
</script>

How can I put WebButton_Click() or WebMenu_Click() procedures in place
of alert() in gambas gb.web.gui

(Attached a sample html)

-- 
Regards
Safiur Rahman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210726/d92e897d/attachment.html>


More information about the User mailing list