I'm trying to work with Javascript code in a Google Apps Script project. I've seen I can create a .html file with the Javascript code. Like this one:
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8">
</head>
<body
<script>
function prueba(){
//code
}
function prueba2(){
//code
}
</script>
</body>
</html>
So I want to know:
- if it's possible to execute functions in that code and return values from those functions to the .gs file,
- If I have to code the .html part as if it was user intended for the final user
I'll use the .gs file to write some info (retrieved from Netsuite) in a Google Spreadsheet file, but I've already done that part.