If the iFrame is in the same domain and you are using Mootools inside it you can try:
$('myIframe').contentDocument.getElements('input').addEvent(
Otherwise try this:
$('myIframe').contentDocument.querySelector('input').addEventListener(
Edit:
If you want to catch the load
event and then add the focus
listener you could use:
var iframe = new IFrame({
src: '/RN95f/3/show',
styles: {
border: '2px solid #ccf'
},
events: {
load: function () {
alert('The iframe has finished loading.');
this.contentDocument.getElements('input').addEvent('focus', function () {
// Do something
alert('focus on input detected!');
console.log(this);
});
}
}
});
$(document.body).adopt(iframe);