title: How to open a page, check a checkbox and click OK using a bookmark?
body: <p>I'm trying to make a bookmark in my browser with a javascript that:</p>
  
  <ol>
  <li>goes to a specific url</li>
  <li>check two checkboxes on that page</li>
  <li>clicks the "ok" button on that page</li>
  </ol>
  
  <p>I have got the following:</p>
  
  <pre><code>javascript: 
  window.location.assign("url"); 
  document.getElementById("checkbox 1").checked = true; document.getElementById("checkbox 2").checked = true; document.getElementById("okButton").click();
  </code></pre>
  
  <p>the <code>location.assign</code> works without any problems, but once I'm on the page the checkboxes are not checked. When I go to the page manually and run the checkbox lines and the click line, it works as expected. </p>
  
  <p>Anyone got a suggestion on how to solve this?</p>
  
  <p>Thanks!</p>