How to close webview from setOnJSCallback()

I am using cocos2d-x js, I have html button inside webview i want to close webview when user click on html button present inside webview.
Following is my code.