function linkClick(e) {
alert(e.target.href);
}
function setDefaultLinkHandlers(){
links = document.getElementsByTagName('a');
for (i = 0; i < links.length; i++)
links[i].addEventListener('click', linkClick, false);
}
document.onload=setDefaultLinkHandlers();
This is JavaScript
String Url = "http://dev.taxmann.com/actruleservice/ActRuleService.asmx/GetFileHTML?FileID_or_FullPath=102120000000025184";
String htmlResp = getStringPage(Url);
WebSettings webSettings = webview.getSettings();
String k = Html.fromHtml((String) htmlResp).toString().replace(");'", "");
Here k
is String where am getting HTML, I have to add that JavaScript in this HTML. Can anyone tell me how I will add this?