title: Create Bookmarklet for Google Form
body: <p>I am trying to create a bookmarklet for a google form.</p>
  
  <p>The form look likes the following:</p>
  
  <p><a href="https://docs.google.com/forms/d/e/1FAIpQLSc6Z725BQQ_GtDN-Gbwy0_W2ZqUt8RC3OeIQ37YExPS5igxPA/viewform" rel="nofollow noreferrer">https://docs.google.com/forms/d/e/1FAIpQLSc6Z725BQQ_GtDN-Gbwy0_W2ZqUt8RC3OeIQ37YExPS5igxPA/viewform</a></p>
  
  <p>The bookmarklet I am trying to use is:</p>
  
  <pre><code>javascript: (function() {
      f = "https://docs.google.com/forms/d/1dqV7o4T1b5tjRI7KwSq8AhN2TSDK9EyIPb6Lj03blPA/viewform&amp;entry_2=" + encodeURIComponent(window.location.href) + "&amp;entry_1=" + encodeURIComponent(document.title);
      a = function() {
          if (!window.open(f, "mightchange", "location=yes,links=no,scrollbars=no,toolbar=no,width=450,height=650")) {
              location.href = f
          }
      };
      if (/Firefox/.test(navigator.userAgent)) {
          setTimeout(a, 0)
      } else {
          a()
      }
  })();
  </code></pre>
  
  <p>When I am pressing the bookmarklet I get:</p>
  
  <p><a href="https://i.stack.imgur.com/wDdjx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wDdjx.png" alt="enter image description here"></a></p>
  
  <p>Any suggestions what I am doing wrong?</p>
  
  <p>Thx in advance!</p>