Blend4web and script python

Hello,
I want to add some buttons to my web page to execute script blender but i don’t know how can i do that.
Can you help me please? i use blend4web
i want to do Something like this with buttons:
https://vetipl.github.io/gullwing.html

Hi,
this is an open source application. You can download it and learn. In short, this is done using the logic editor https://www.blend4web.com/doc/en/logic_editor.html

thank you for your response. I look for add button in my web interface to run blender script.
have you any solution please?