Hi,following javascript is working in older versions of Safari but not working in latest version of Safari.pls find the fix for it ASAP.Thanks in advance.


function loadframe(){
var iframeEl = document.getElementById("ifrm");
if(!iframeEl)
{
window.alert('hellooooooo');
var el = document.createElement("div");
el.innerHTML = '<iframe id="ifrm" width="0" height="0" src=\'<!--EP CLASS="com.epiphany.presentation.ServerURLWriter" ACTION="campaign_segment_load" TEMPLATE="campaign\\campaign_segments" -->\' onload="dw_display(\'ifrm\',\'segmentspn\')" ></iframe>';
document.body.appendChild(el);
return true;
}
return false;
}