.stopPropagation() This stops all propagation of the event #in the bubbling phase#. For a complete cross-browser experience do function doSomething(e) { if (!e) var e = window.event 🔗 网页链接 趣点🔗 网页链接