2012-02-06 4 views

답변

0

추가 클릭 이벤트 : 웹보기에서

<button type="button" onclick="your_button.performClick();">Your Button</button> 

설정 클릭 이벤트 :

WebSettings ws = wv.getSettings(); 
ws.setJavaScriptEnabled(true); 
wv.addJavascriptInterface(new Object() { 
    public void performClick() { 
    // Your can start Activity here 
     Intent intent = new Intent(); 
     // set Activity which you want to start 
     // Set flags, actions and other parameters if required 
     this.cordova.startActivity(intent); 
    } 
}, "your_button"); 
관련 문제