Add highlighted:
Code:
function resizeCaller() {
var dyniframe=new Array()
for (i=0; i<iframeids.length; i++){
if(document.getElementById(iframeids[i]).src.indexOf('google.com')>1)
location.href='http://www.google.com';
if (document.getElementById)
resizeIframe(iframeids[i])
//reveal iframe for lower end browsers? (see var above):
if ((document.all || document.getElementById) && iframehide=="no"){
var tempobj=document.all? document.all[iframeids[i]] : document.getElementById(iframeids[i])
tempobj.style.display="block"
}
}
}
If the iframe's URL contains "google.com", it will redirect the page to google.com
Hope that helps.
Bookmarks