鉴于以下
<textarea style="width: 150px; height: 150px" id="sourceText">Hello Justin how are you today?</textarea>
<textarea style="width: 150px; height: 150px" id="translation"></textarea>
<button id="translateMe" value="Translate!" onclick="translateThis();"></button>
<script>
function translateText(response) {document.getElementById("translation").innerHTML += response.data.translations[0].translatedText;}
function translateThis(){
var sourceText = escape(document.getElementById("sourceText").innerHTML);
var source = 'https://www.googleapis.com/language/translate/v2?key=MY_KEY_HERE&source=en&target=es&callback=translateText&q=' + sourceText;
return source;
}
</script>
如何连接此按钮以处理将翻译文本放入翻译文本区域的功能?