# prevent **Repository Path**: mirrors_regular/prevent ## Basic Information - **Project Name**: prevent - **Description**: Cross browser prevent default, because microsoft is awesome. - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-25 - **Last Updated**: 2026-05-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # prevent Cross-browser preventDefault ## Installation $ component install yields/prevent ## Example ```js anchor.onclick = require('prevent'); anchor.onclick = function(e){ if (something) return require('prevent')(e); }; ``` ## API ### prevent(e) Prevent the given `e`, if the argument is omitted, the method will fallback to `window.event`. ## License MIT