我在我的谷歌應用腳本項目中的html文件中有一個表單,當點擊一個提交按鈕時,我需要重定向到另一個html文件。如何創建更改頁面的按鈕?
HTML代碼:
<html>
<script>
function doSomething(){
alert('this one works too!');
//here Change of page
}
</script>
<body>
<h1 style="text-align:center;font-family:Tahoma;">HORAS LABORADAS<br/>
<form style="margin-left:90px;font-family:Trebuchet MS;">
<b>Nombre</b><br/>
<input type="button" onclick="doSomething()">
</form>
</body>
</html>
我通過
function doGet() {
return HtmlService.createTemplateFromFile('prueba').evaluate();
}
請記住,我在谷歌 - 應用程序 - 腳本 – LawCorredor