(Already seen similar question but it isn't the same issue).
This is an HTML page intended to run in a browser locally (i.e. double-click the page in File Explorer), not served.
The page links to a simple JS file with a few functions. If the page and script are on a local drive, it works as expected. but when they are on a network drive, one of the functions fails with the exception 'Object doesn't support property or method 'getElementsByClassName'. The function is:
function DisplaySection(section)
{
var sections = document.getElementsByClassName("SECTION");
for (var i = 0; i < sections.length; i++)
{
sections[i].style.display = sections[i].id == section ? "block" : "none";
}
}
To confirm: the JS functions are visible in both environments, and are properly connected to the document - I can step into the function that fails using F12 debugger.
Any pointers very welcome.