Another Way of Loading IFrame dynamically

This is yet another way of loading an iFrame dynamically using javascript.


function loadIframe(iframeName, url) {
if ( window.frames[iframeName] ) {
window.frames[iframeName].location = url;
return false;
}
else return true;
}

Leave a Reply

Your email address will not be published. Required fields are marked *