dcsimg

“Object does not support this property or method” JavaScript error in Internet Explorer

Products

Webtrends Analytics 9.x
Webtrends Analytics 8.x

Issue

fter the Webtrends JavaScript code is deployed, loading the page generates the following JavaScript error in Internet Explorer: “Object does not support this property or method.” This error appears in Internet Explorer 6, 7, and 8. No JavaScript error is generated in Firefox or other browsers.

Cause

When Internet Explorer encounters a node with the name “tags”, it overwrites the standard JavaScript document.all.tags method. Our script makes use of this method, and generates an error if the standard method is not accessible. Avoiding the use of a node with the name “tags” will avoid this error.

Resolution

Review the HTML document and locate a node with the name of “tags” – this could be a metatag with the attribute name=”tags”, a DIV element with the attribute name=”tags”, or any other method of assigning a name of “tags” to any node in the DOM. Change this element so that it has a different name.