title: Need suggestion auto submit google form when timeout
body: <p>please i need help some code for my quiz, my expectation is when the time is running out i want the googleform is automaticly subbmited even if its blank.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"&gt;
  
  &lt;body&gt; 
  
    &lt;div id="timer" align="center"&gt;&lt;a class="fa fa-book"&gt;&lt;/a&gt; Psikotest Online &lt;a class="fa fa-clock-o"&gt;&lt;/a&gt; &lt;span id="time"&gt;&lt;/span&gt;&lt;/div&gt;
  
  &lt;span id="form"&gt;
  &lt;iframe src="https://docs.google.com/forms/d/e/1FAIpQLSevaFFDGTTEvCV8O04zAB8G4IK-MZIMSWoUzgnWkBFiR_5y_Q/viewform?usp=sf_link"&gt;LOADING&lt;/iframe&gt;&lt;br /&gt;
  &lt;/span&gt;
  &lt;/body&gt;
  
  &lt;script&gt;
  
  function startTimer(duration, display) {
      var timer = duration, minutes, seconds;
      var batas = timer + 60*1 ;
      setInterval(function () {
          minutes = parseInt(timer / 60, 10);
          seconds = parseInt(timer % 60, 10);
  
          minutes = minutes &lt; 10 ? "0" + minutes : minutes;
          seconds = seconds &lt; 10 ? "0" + seconds : seconds;
  
          display.textContent = minutes + ":" + seconds + " Menit !";
  
          if (--timer &lt; 0) {
  
             document.getElementById("timer").innerHTML = "Waktu Anda Telah Habis, Jika tidak segera submit test secara otomatis pengerjaan anda tidak terekam keseluruhan";
          }
      if (--batas &lt; 0) {
  
             document.getElementById("form").style.visibility = "hidden";
             document.getElementById("timer").style.visibility = "hidden";
          }
  
      }, 1000);
  }
  
  window.onload = function () {
      var fiveMinutes = 60 * 1,
          display = document.querySelector('#time');
      startTimer(fiveMinutes, display);
  
  };
  
  &lt;/script&gt;
  
  &lt;style type="text/css"&gt;
    
  body {
      overflow: hidden;
      
  }
  
  iframe {
  
  height: 100%;
  width: 100%;
  border: 0px;
  padding-top: 8px;
  margin: 0px
  
  }
  
  #timer {
  background-color: F0EBE3;
  color: 2C3639;
  font-family: arial;
  font-weight: bold;
  padding: 10px 30px;
  border-radius: 25px;
  }
  
  &lt;/style&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>please i need help some code for my quiz, my expectation is when the time is running out i want the googleform is automaticly subbmited even if its blank.</p>