I don't fully understand your question. But if you want to close WebView in specific url, you can use shouldOverrideUrlLoading like this.
Lee mas