$PAGETEXT:= "
<html>
<p id = 'text1' style='text-align:center'></p>
<script>
// the function() { envelops all the following script. It forces your code to run only when the page has completely loaded (I think!)
document.addEventListener('DOMContentLoaded', function() {
// write your code here
let text1ID = document.getElementById('text1')
//--- if you write text1ID.innerHTML='Hello!' you will see this on the screen when you reach this page in your story
//---
})
</script>
</html>
No comments:
Post a Comment