I have a question about python and javascript. I like to create a file who comminicate with javascript webpage.
First i will create a Python file who will open a local webpage. This example localhost/test.html This page is a themplate page. The code is
<html><head><title>An example application</title></head>
<script>
function myFunction()
{
alert("Hello! I am an alert box!");
}
</script>
<body>
<h1 class="content">This is my sample application</h1>
Put the content here...
<hr>
<a href="/exit">Quit</a>
</body></html>
Whene everything is loaded and displayed the python file will activate the javascript function "myFunction()"
How do I do that? I am running Debian and have installed Python and Chromium.