I am trying to activate the click event of an element within an iFrame (a standard twitter follow button) when clicking on an element within my main page.
Here’s the code I’m trying to use which does not work…
$(".twit-test").click( function() {
$('.twitter-follow-button').contents().find('#follow-button').click();
return false;
});
As mentioned by a few people above, I can’t achieve what I was asking because I am not the owner of the iFrame content.