Article View: comp.lang.javascript
Article #34Mouse events with IE5 ???
From: Christian St-Pierre
Date: Wed, 31 Jan 2001 20:50
Date: Wed, 31 Jan 2001 20:50
24 lines
1779 bytes
1779 bytes
Hello, I use this function to capture mouse events on a page:
<script Language="Javascript">
document.captureEvents(Event.MOUSEDOWN | Event.MOUSEMOVE |
Event.MOUSEUP | Event.CLICK)
document.onMouseDown = Message
function Message() {
alert('some_message')
}
</script>
It works just fine with Netscape but I can't make it work with IE5... I
tried a couple of things such as using an event handler or using the
other events (MOUSEMOVE, etc.) but without success.
Anyone can point me out the way to make it work with IE5 ?
Thanks a lot !
Christ.
Technical Details
Message-ID:
<3A787A63.6A16CEDE@fse.ulaval.ca>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.mathworks.com!sunqbc.risq.qc.ca!carnaval.risq.qc.ca.POSTED!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb3cb,af7b2b3b2ed25b8a,start X-Google-Attributes: gidfb3cb,public X-Google-Thread: 106f62,af7b2b3b2ed25b8a,start X-Google-Attributes: gid106f62,public X-Google-Thread: 100e17,af7b2b3b2ed25b8a,start X-Google-Attributes: gid100e17,public X-Google-ArrivalTime: 2001-01-31 12:50:26 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.mathworks.com!sunqbc.risq.qc.ca!carnaval.risq.qc.ca.POSTED!not-for-mail Message-ID: <3A787A63.6A16CEDE@fse.ulaval.ca> From: Christian St-Pierre <Christian.St-Pierre@fse.ulaval.ca> X-Mailer: Mozilla 4.7 [fr] (WinNT; U) X-Accept-Language: fr MIME-Version: 1.0 Newsgroups: comp.lang.javascript,alive.internet.lang.javascript,alt.html.dhtml, Subject: Mouse events with IE5 ??? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 25 Date: Wed, 31 Jan 2001 20:50:21 GMT NNTP-Posting-Host: 132.203.154.197 X-Complaints-To: abuse@ulaval.ca X-Trace: carnaval.risq.qc.ca 980974221 132.203.154.197 (Wed, 31 Jan 2001 15:50:21 EST) NNTP-Posting-Date: Wed, 31 Jan 2001 15:50:21 EST