title: Using Javascript - How to Click a Submit Button that has No ID, Value or Name
body: <p>How can I use javascript to "click" a button that has no id, value, class or name?</p>
  
  <p>The relevant code for the button is:</p>
  
  <pre><code>&lt;div class="classname anotherclassname" title=""&gt;
      &lt;div&gt;
          &lt;button type="submit"&gt;&lt;i class="anotherclass anotherclassname"&gt;&lt;/i&gt;ImAButton&lt;/button&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I'd give an example of what I have so far, as I know that is simply good etiquette here on stackoverflow, but I don't even know where to start.  The only way I presently know how to use javascript to click a button is using this:</p>
  
  <pre><code>document.getElementById("myButtonId").click();
  </code></pre>
  
  <p>And that doesn't apply here.</p>