javascript not working in IE
-
Take a look at my site, http://www.workingbath.com/ in Firefox first, and click on the tabs at the top. Now open my site in IE and try clicking on the tabs, it doesn’t work.
Here is the code:
function toggleTwoDivs(divToGoOn) {
thisDiv = document.getElementById(divToGoOn);
arch = document.getElementById('arch');
lnks = document.getElementById('lnks');
abut = document.getElementById('abut');if (thisDiv == arch) {
lnks.style.display = "none";
abut.style.display = "none";
if (thisDiv.style.display == "none") {
thisDiv.style.display = "block";
}
else {
thisDiv.style.display = "none";
}
}
if (thisDiv == lnks) {
arch.style.display = "none";
abut.style.display = "none";
if (thisDiv.style.display == "none") {
thisDiv.style.display = "block";
}
else {
thisDiv.style.display = "none";
}
}
if (thisDiv == abut) {
lnks.style.display = "none";
arch.style.display = "none";
if (thisDiv.style.display == "none") {
thisDiv.style.display = "block";
}
else {
thisDiv.style.display = "none";
}
}
}
- The topic ‘javascript not working in IE’ is closed to new replies.