title: How to accept alert message with just javascript in internet explorer
body: <p>I am attempting to click Ok on an alert that pops up. I have attempted to do this with Selenium WebDriver and it failed. This is what I was trying in Selenium.</p>
  
  <pre><code>WebDriverWait wait = new WebDriverWait(driver,30);
  wait.until(ExpectedConditions.alertIsPresent());
  Alert alert = driver.switchTo().alert();
  alert.accept();
  </code></pre>
  
  <p>I am wondering if I can attempt to accept the alert message with just java script.</p>