JavaScript Element webkitmouseforcewillbegin Event
Beginner
5 min read
Updated: Nov 2026
3 examples
Event
Definition
In JavaScript, the webkitmouseforcewillbegin event is a proprietary WebKit / Safari Force Touch signal: Safari for macOS fires it on an element before the initial mousedown (MDN). Call preventDefault() to tell macOS not to run default Force Touch actions if the press becomes a force click.
Register a listener with addEventListener. Check readiness and browser support before you rely on this event.
Syntax
Listen for webkitmouseforcewillbegin. Start with this line.
Feature-detect. Looking for onwebkitmouseforcewillbegin is a common Safari check.
Branch the UX. Only attach when support exists.
Skip elsewhere. Other browsers have no system Force Touch defaults to suppress.
Stay optional. Never require this event for core app behavior.
Compatibility
Browser Support
webkitmouseforcewillbegin is Non-standard on MDN — proprietary Safari / WebKit Force Touch (macOS). Not Baseline. Not part of any web specification. Prefer portable Pointer / mouse events for cross-browser apps.
✓ Non-standard
Element webkitmouseforcewillbegin
Safari macOS Force Touch prep hook only. Not available in Chrome, Firefox, or Edge as a standard event.
SafariWebKit only
Google ChromeNot supported
Unavailable
Mozilla FirefoxNot supported
Unavailable
Apple SafarimacOS Force Touch / WebKit
Supported
Microsoft EdgeNot supported
Unavailable
OperaNot supported
Unavailable
Internet ExplorerNot supported
Unavailable
webkitmouseforcewillbeginLimited
Bottom line: Optional Safari enhancement for blocking system Force Touch defaults. Ignore on other browsers.
Frequently Asked Questions
Safari for macOS fires webkitmouseforcewillbegin on an element before the initial mousedown (MDN). Its main job is giving you a chance to call preventDefault() so macOS does not run default Force Touch actions if the press becomes a force click.
MDN marks it Non-standard only — not Deprecated and not Experimental. It is not part of any web specification. Prefer portable APIs for production.
A MouseEvent (inherits from UIEvent / Event). It can also expose the non-standard MouseEvent.webkitForce property.
MDN: calling preventDefault() on webkitmouseforcewillbegin tells macOS not to engage default Force Touch actions if the user applies enough pressure — useful when your page handles force clicks itself.
It fires before the initial mousedown. Later you may see webkitmouseforcechanged, webkitmouseforcedown, webkitmouseforceup, then mouseup.
Use element.addEventListener("webkitmouseforcewillbegin", handler), or set onwebkitmouseforcewillbegin where supported. Always feature-detect first.