I'm trying to create a simple input-output webapp and have been having the hardest time getting anything to work. The idea is to get user input from a textarea, add some simple html tags to it, and output it into another textarea. This is only to help some coworkers streamline their operations.
I settled on making a standalone Google Apps Script webapp, and using the HTML service to create my UI. The plan is to run Javascript in that HTML.
I've tested the following code on W3schools' TryIt Editor, and it works fine. It even works when I'm running it on StackOverflow's "run code snippet." But it won't function when I test my webapp.
Help?
<!DOCTYPE html>
<html>
<body>
<br>
<textarea rows=12 cols= 50 align=left id="input" placeholder='Insert text here...'></textarea>
<input type="button" value="Try It" onclick="myFunction()" />
<textarea rows=12 cols= 50 align=right id="output" placeholder='Copy this text...' readonly></textarea>
</body>
<script type="text/JavaScript">
<!--
function myFunction() {
var x = document.getElementById("input").value;
document.getElementById("output").innerHTML = x;
}
-->
</script>
</html>