with confirm() in webview there are 2 buttons (OK and Cancel) and (optionally) a message, all you do is tap the OK or the Cancel button, and your choice is passed to webwiew as confirmation. you don't need any special library. just tap one button or the other.