pf » FireFox Click Wheel does not fire onclick Event
FireFox Click Wheel does not fire onclick Event
I just noticed something today in Firefox (on Windows, probably the same on Mac haven't tested yet). Suppose you have a link with a JavaScirpt onclick event such as:
<a href="deleteTB.cfm" onclick="javascript:return confirm('Are you sure?');">delete</a>
If you click this link with the left mouse button the JavaScript is executed. If you click with the scroll wheel the event is not fired. This is a fairly common thing for a FireFox user to do since you can open links in new tabs by clicking on links with the scroll wheel.
Related Entries
- AJAX on IE - back to the IFRAME - August 17, 2005
- GreaseMonkey User Scripts - May 11, 2005
- Venkman JavaScript Debugger Firefox Extension - December 29, 2004
Middle click should open a new tab. In case there is no real link the js can't open in a new page anyway. Sites that do open the js as if it's an url are just coded badly.
<a href="javascript:popup()">like this</a>
I do agree, it would be more logical for a browser to support onmiddleclick= and target="new_tab"
- CFSCRIPT Cheatsheet
- 3 New Image Effects for ColdFusion 8
- Googlebot to Submit Web Forms
- ColdFusion 8 Update 1 Fixes some Image Processing Quirks
- 10 Most Useful Image Functions in ColdFusion 8
- Speaking at NYC CFUG This Week
- Adobe AIR Tutorial for HTML / JavaScript Developers
- INFORMATION_SCHEMA Support in MySQL, PostgreSQL
RSS
add to del.icio.us
Pete Freitag is a software engineer, and web developer located in










