Hello, I have a problem at my site. My javascript function for changing src of iframe does work in Opera, but it doesnt work in firefox or IE. Can anybody help me out, please?
I tried several ways, and now i have no other way, just ask.
function showMap(srcs, ine, ind, link){
if(document.getElementById(ind).style.display == ‘table-row’){
document.getElementById(ind).style.visibility = ‘hidden’;
document.getElementById(ind).style.display = ‘none’;
}else{
if (document.getElementById(srcs).src==‘’){
document.getElementById(srcs).src = link;
document.getElementById(srcs).location = link; // tried this
document.getElementById(srcs).location.href = link; // tried this too
}
document.getElementById(ind).style.visibility = ‘visible’;
document.getElementById(ind).style.display = ‘table-row’;
}
}
at the start, src is set “” //empty string