I'm still learning javascript and primarily focus on front end development. I want to display user submissions in a randomized manner on the screen, even if it means that everything gets wiped away upon refreshing the page. Currently, this is my code snippet:
<script>
function myFunction() {
var x = document.getElementById("myText").value;
document.getElementById("demo").innerHTML = x;
}
</script>
With this setup, user submissions appear at the bottom of the screen after they are entered, but my goal is to have each response displayed randomly across the entire screen.
Although the input is shown below the text box, I am struggling to figure out how to display multiple answers and then randomize their positions on the screen.