<script>
  document.addEventListener(&quot;DOMContentLoaded&quot;, function() {
    var iframe = document.getElementById(&#39;iframe&#39;);
    var url = &#39;https://script.google.com/macros/s/AKfycbwX0CHEBmkeTBo5sB89Ng6p1bIIp5RyA1AefoCbSOqD8PYNaEMCW2_Iv10NpdISFjU4lg/exec?m=1&#39;;
    iframe.src = url;
  });
  
function getLocation() {
  if (navigator.geolocation) {
    navigator.geolocation.getCurrentPosition(function(pos) {
    //You have your locaton here
      console.log(&quot;Latitude: &quot; + pos.coords.latitude +
        &quot;Longitude: &quot; + pos.coords.longitude);
    });
  } else {
    console.log(&quot;Geolocation is not supported by this browser.&quot;);
  }
}
  </script>