<html>
<head>
<script>
function show(event){
var str = event.pageX + ' x '+event.pageY;
alert(str);
}
</script>
</head>
<body>
<img src="..." onClick="show(event)">
</body>
</html>
// alert enable
webView.getSettings().setJavaScriptEnabled(true);
webView.setWebChromeClient(new WebChromeClient(){ @Override public boolean onJsAlert(WebView view, String url, String message, JsResult result) {
//TODO :
result.cancel(); return true; // return super.onJsAlert(view, url, message, result);} });
댓글
댓글 쓰기