Skip to content

Instantly share code, notes, and snippets.

@dimonovdd
Created October 19, 2022 14:27
Show Gist options
  • Save dimonovdd/f2a565913a05c36f80f4f9de02410934 to your computer and use it in GitHub Desktop.
Save dimonovdd/f2a565913a05c36f80f4f9de02410934 to your computer and use it in GitHub Desktop.
Sample Webview
@"
document.body.addEventListener('click', function(e) {
e = e || window.event;
var target = e.target || e.srcElement;
Native('invokeClick', 'tag='+target.tagName+' id='+target.id+' name='+target.name);
}, true /* to ensure we capture it first*/);
"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment