IntroductionInstallationLimitations of the "file" protocolFrequently asked questionsSyntax, keywords and built-in functionsStandard distributionimport implementationBrython packagesBrowser interface
Introduction - DOM API
Creating a document Accessing elements Attributes, properties and methods Events Mouse events Keyboard events Focus events Drag events Query string Interactions with Javascript Brython-specific built-in modules
browser
browser.aio browser.ajax browser.html browser.local_storage browser.markdown browser.object_storage browser.session_storage browser.svg browser.template browser.timer browser.webcomponent browser.websocket browser.worker Widgets browser.widgets.dialog browser.widgets.menu interpreter javascript Working with BrythonCookbook |
ProblemCreate an HTML tableSolutionIn this example and the following, we will only show the Python script ; the surrounding HTML code will remain the same as in the previous examples To create a table, we use the HTML tags :TABLE (the table),TR (a table
row), TH (a header cell) and TD (a cell)
The table is made of rows, each row is made of cells ; the first row is
generally made of "header cells" describing the value in the matching column
Here is a simple example :
|