web api instance property
ErrorEvent: colno property
Available in workers
The colno read-only property of the ErrorEvent interface returns an integer containing the column number of the script file on which the error occurred.
Value
An integer.
Examples
window.addEventListener("error", (ev) => {
console.log(`The error occur in column: ${ev.colno}`);
});
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.