Here is an example of a simple code snippet that, in Xerte, will produce a error popup that says that my session has expired. Almost every time I use the script box I het that error. Here is some code that runs without a problem in a browser:
<!DOCTYPE html>
<html>
<body>
<button onclick="playVid()" type="button">Play Video</button>
<button onclick="pauseVid()" type="button">Pause Video</button><br>
<video id="myVideo" width="320" height="176"autoplay="true">
<source src="
essentialhebrew.com//xrtAssets/video/snowy_owl.mp4" type="video/mp4">
Your browser does not support HTML5 video.
</video>
<script>
let vid = document.getElementById("myVideo");
function playVid() {
vid.play();
// alert(vid.duration);
}
function pauseVid() {
vid.pause();
}
</script>
</body>
</html>
Thank.