BRython Test File
- Read Jokes
- Get Quotes
- Append Input Values
By including the Brython scripts from a CDN, you can use Brython without installing it locally:
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected]/brython.min.js">
</script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected]/brython_stdlib.js">
</script>
<html>
<head>
<meta charset="utf-8">
<script type="text/javascript"
src="https://cdn.jsdelivr.net/npm/[email protected]/brython.min.js">
</script>
</head>
<body onload="brython()">
<script type="text/python">
from browser import document
document <= "Hello BRython!"
</script>
</body>
</html>
- Save this page as
index.html
. When you open the page, you should see the "Hello BRython!" message displayed on the browser.