SecurityPolicyViolationEvent: Eigenschaft columnNumber
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since August 2016.
Hinweis: Diese Funktion ist in Web Workers verfügbar.
Die columnNumber
schreibgeschützte Eigenschaft der SecurityPolicyViolationEvent
-Schnittstelle ist die Zeilenspaltennummer im Dokument oder im Worker-Skript, an der der Verstoß gegen die Content Security Policy (CSP) aufgetreten ist.
Wert
Eine Zahl, die die Spaltennummer darstellt, an der der Verstoß aufgetreten ist.
Beispiele
js
document.addEventListener("securitypolicyviolation", (e) => {
console.log(e.columnNumber);
});
Spezifikationen
Specification |
---|
Content Security Policy Level 3 # dom-securitypolicyviolationevent-columnnumber |
Browser-Kompatibilität
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
columnNumber |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.