Added eventlistener negotiation to support ie8 iframe onload.