Is it possible to use a <script> element in the HTML Element widget of Mendix?

0
I want to test if it's possible to add a very simple script-element to the 'HTML-element' widget. After a few tests I didn't succeed in adding a simple script-element. Other HTML-elements like <p>, <div> and <a> worked. So my question is: Is it possible to use a '<script>' element in the 'HTML Element' widget of Mendix?   The simple script I wanted to implement is: <script>document.getElementById("Text").innerHTML = "Hello Mendix!";</script>    If that script worked I wanted to implement a more extensive script: <button type="button" onclick="myFunction()">Upvote for Mendix!</button> <p id="Text">You've not upvoted Mendix yet :(</p> <script>function myFunction() {   document.getElementById("Text").innerHTML = "You've upvoted Mendix!";}</script>
asked
1 answers
0

You may be better looking at using the HTML / JavaScript Snippet widget instead in this case.

 

https://docs.mendix.com/appstore/widgets/html-javascript-snippet/

 

Good luck

answered