こういうテキストエリアを作りたい
デモ:
テキストエリアに入力したらアラートを出す
コード.gs
function doGet() {
return HtmlService.createHtmlOutputFromFile("index");
}
|
意訳この機能がやること 指定したHTMLファイルを表示する |
index.html
<!DOCTYPE html>
<html>
<body>
<textarea id="ta"></textarea>
<script>
document.getElementById('ta').oninput = myFunction;
function myFunction() {
alert('input');
}
</script>
</body>
</html>
|