D
dubing
Hi,
Our webpage uses the following JavaScript code.
function toggleSubmenu(divId, link)
{
var div = document.getElementById(divId);
div.style.display = (div.style.display == 'block') ? "none" :
"block";
if (link.className == "")
link.className = "tempselected";
else
link.className = "";
}
Launching the page in IE pops up the error:
A runtime error has occurred. Do you wish to debug? Line:188
Error: Object required
The line reporting error is:
div.style.display = (div.style.display == 'block') ? "none" : "block";
The version of IE I tested is 6.0.2900.2180.xpsp-sp2-gdr.050301-1519.
The page does not return any errors in other browsers (e.g. Firefox,
Netscape, etc.)
How should I fix the error?
Any help would be greatly appreciated.
Bing
Our webpage uses the following JavaScript code.
function toggleSubmenu(divId, link)
{
var div = document.getElementById(divId);
div.style.display = (div.style.display == 'block') ? "none" :
"block";
if (link.className == "")
link.className = "tempselected";
else
link.className = "";
}
Launching the page in IE pops up the error:
A runtime error has occurred. Do you wish to debug? Line:188
Error: Object required
The line reporting error is:
div.style.display = (div.style.display == 'block') ? "none" : "block";
The version of IE I tested is 6.0.2900.2180.xpsp-sp2-gdr.050301-1519.
The page does not return any errors in other browsers (e.g. Firefox,
Netscape, etc.)
How should I fix the error?
Any help would be greatly appreciated.
Bing