title: Can HtmlUnit handle JavaScript redirects?
body: <p>Instead of automatically following JavaScript redirects, can I force HtmlUnit to return the URL the JavaScript wants to redirect me to?</p>
  
  <p>// context:</p>
  
  <p>If there's 5 JavaScript redirects in a row, I can only see the URL of the page where it stopped - I can't view the 5 URLs it ran through.</p>
  
  <p>Perhaps I can hook up the logger to a callback method to look for redirects? Not sure if this is possible, or how it would work..</p>