Guest User

Untitled

a guest
Jun 15th, 2019
80
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <script>
  5. document.getElementById("btnSearch")
  6. .addEventListener("click",showAlert);
  7. function showAlert() {
  8. alert("hello world");
  9. }
  10. </script>
  11. </head>
  12. <body>
  13. <div>
  14. <label>Enter code</label>
  15. <input type="text" id="txtStudentID"/>
  16. <button id="btnSearch">Search</button>
  17. </div>
  18. </body>
  19. </html>
  20.  
  21. function doGet() {
  22. return HtmlService.createHtmlOutputFromFile('Index');
  23. }
  24.  
  25. <input type="button" value="Search"
  26. onclick="google.script.run
  27. .withSuccessHandler(showAlert)
  28. .withUserObject(this)" />
RAW Paste Data