title: Selenium JavascriptExecutor on IE9 results in 'element was not scrolled into the viewport' error
body: <p>I'm trying to use a JavascriptExecutor to open a new tab in IE9 from selenium webdriver:</p>
  
  <pre><code>public void openTab() {
      String url = webDriver.getCurrentUrl();
      String script = "var     a=document.createElement('a');a.target='_blank';a.href='" + url + "';a.innerHTML='open';document.body.appendChild(a);return a";
      Object element = getJSExecutor().executeScript(script);
      if (element instanceof WebElement) {
          WebElement anchor = (WebElement) element;
          anchor.click();
      } else {
          throw new RuntimeException("Unable to open tab: " + url);
      }
  }
  </code></pre>
  
  <p>This works fine in Chrome but on running in IE9, I get the following error:</p>
  
  <p>ElementNotVisibleException: The point at which the driver is attempting to click on the element was not scrolled into the viewport.</p>
  
  <p>I'm using the 2.31 versions of both selenium and IEDriverServer.</p>