<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <script> function sample(){ $("#but").click(function () { google.script.run .withSuccessHandler(function(y) { $("#memo").html(y); }) .withFailureHandler(function(msg) { $("#memo").html("failx"); }) .plus(); }); google.script.run .withSuccessHandler(function(x) { $("#memo").html(x); }) .withFailureHandler(function(msg) { $("#memo").html("fail"); }) .sigma(); } </script>