Forum Moderators: open
Glad to have joined the forum and I look forward to contributing.
Anyone ever attach an event handler to an element in an IFrame?
I have created an IFrame that I can then reference like this
var iDoc = document.getElementById(id).contentWindow.document.body;
them attach a hendler to that element
iDoc.onfocus = function() {
alert("the body has focus")
}
I can access the elements (nodes) and get their properties and attributes. but.... NO I can't seem to assign a handler on anything in the frame
Sincerely
Don T