Call js function in python to use document.getElementById
<p>I've recently asked about a way to call a js function in python. People gave me advice such as using js2py, or pyv8, but the problem is that it does not allow me to use the following js command: </p>

<pre><code>document.getElementById("example");
</code></pre>

<p>So my question is: Is there a way to call js from a python function and that allows you to use the js command above?</p>

<p>Thanks in advance!</p>