title: how to work with pop ups window in android webview
body: <p>I am developing browser like application using a Webview for my own understanding.</p>
  
  <p>I am not yet clear how to work with pop-ups in android Webview.</p>
  
  <p>I came across these methods  <code>onJsAlert()</code>, <code>onJsBeforeUnload()</code>, <code>onJsConfirm()</code> etc to handle java script pop ups. from this <a href="http://forum.xda-developers.com/showthread.php?t=877521" rel="nofollow noreferrer">link</a> and also <a href="http://developer.android.com/reference/android/webkit/WebChromeClient.html" rel="nofollow noreferrer">developer link</a></p>
  
  <p>these work when there is a jsAlert but how do i handle pop-up which opens in new window ?</p>
  
  <p>I just want to know is there is any other way to handle pop up for websites in android webview like opening in new tab or open in new window using webview.</p>
  
  <p>I am also having trouble to open urls which are opened in new window in normal browser.e.h If I open some link from twitter then this url is not loaded but twitter logo is seen similar to one of the questions <a href="https://stackoverflow.com/questions/8647383/open-pop-up-external-site-link-in-current-webview">here</a></p>
  
  <p>here is the snap shot from <strong>normal android browser</strong> but this is loaded in my webview as a normal page not as pop-up</p>
  
  <p><img src="https://i.stack.imgur.com/rc11J.png" alt="enter image description here"></p>