{"action":"closed","issue":{"url":"https://api.github.com/repos/atom/electron/issues/3315","labels_url":"https://api.github.com/repos/atom/electron/issues/3315/labels{/name}","comments_url":"https://api.github.com/repos/atom/electron/issues/3315/comments","events_url":"https://api.github.com/repos/atom/electron/issues/3315/events","html_url":"https://github.com/atom/electron/issues/3315","id":114848121,"number":3315,"title":"Access elements inside webview","user":{"login":"iamdriz","id":801252,"avatar_url":"https://avatars.githubusercontent.com/u/801252?v=3","gravatar_id":"","url":"https://api.github.com/users/iamdriz","html_url":"https://github.com/iamdriz","followers_url":"https://api.github.com/users/iamdriz/followers","following_url":"https://api.github.com/users/iamdriz/following{/other_user}","gists_url":"https://api.github.com/users/iamdriz/gists{/gist_id}","starred_url":"https://api.github.com/users/iamdriz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamdriz/subscriptions","organizations_url":"https://api.github.com/users/iamdriz/orgs","repos_url":"https://api.github.com/users/iamdriz/repos","events_url":"https://api.github.com/users/iamdriz/events{/privacy}","received_events_url":"https://api.github.com/users/iamdriz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-03T15:59:58Z","updated_at":"2015-11-04T02:07:50Z","closed_at":"2015-11-04T02:07:50Z","body":"I have an application that needs to work on a touch screen (runs on Windows 7) and I have built a custom keyboard using jQuery for the screen.\r\n\r\nThe keyboard appears when a user clicks an input element. And to access certain elements such as inputs in an iframe I use:\r\n~~~\r\n$('iframe').contents().on('click', 'input, textarea', function(e){ showKeyboard(); });\r\n~~~\r\n\r\nNote, I run the src of the iframe through a PHP proxy to get around the security issues with accessing the elements of cross domain iframe.\r\n\r\nHowever when using the webview tag, I can't access dom elements inside the webview...\r\n\r\nIs it possible to do this? I can't use the executeJavascript method as I need to listen for when a user clicks an input inside the webview that calls the code in the parent, rather than fire JS code into the frame."}}