- Create a test folder and copy b4w.min.js and brython.js into this folder.
- Save the presented scripts in the test folder.
- Test the scripts on the browser.
The first version is taken directly from the manual and shows the rationale:
- Integrating b4w.min.js
- Definition of a function (here in the head element)
- And calling a function (here with the onload event)
This has now but nothing to do with Python, what really is regrettable.
More infos are availabe on the Brython website