document.getElementById(Iframe_id).contentWindow.addEventListener("blur", blurtest, true);
By using this line I have given the blur event to iframe. it is working.
But When in
function blurtest(e)
{
alert(e.target.id);
}
alert is used, but it gives value as Undefined.In other events it is working. So How to get the id of iframe in this blur function?.
you have 2 ways, to use scope closures to remember the variable during set up:
or using a proper way to get the source element of an event
good luck!