my code as follow:
from pyrevit import script
output = script.get_output()
html = '<script>' \
'function myFunction() {' \
'document.getElementById("demo").style.color = "red";' \
'}' \
'</script>'
output.print_html(html)
output.print_html("<h3 id='demo' onclick='myFunction()'>Click me to change my color.</h3>")
but it happens: