Ok thanks:) it works

but I'm interested to "touch" less possible sample.html.

And so I have tried this in main.html:

function doBind() {
  var frame=document.getElementsByTagName("iframe")
[0].contentDocument.documentElement;
  $(frame).bind('click', function(event) { alert('an element in frame
is clicked ' + event.target.innerHTML) })
}

it would be a kind of "addEventListener" (using jquery-bind).
On firefox 2.0.x it works but I suppose it's not good for explorer
because is present 'contentDocument.documentElement'

Have you any idea to make it "cross-browser"???

Thanks,
Julio

Reply via email to