The reason you cannot access the element is because it is inside an iframe
. Since the iframe is from different domain, you cannot access dom elements through javascript due to Same origin policy
Question
I want click by some element in VKontakte web application from JS, but it not possible.
For example I go to this application http://vk.com/app2797985. I want click by element with id: likeBlock_button_like.
Standart JS code for clicking by element:
javascript:document.getElementById('likeBlock_button_like').click();
but this code dont work with this application. How to solve this problem?
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow