Ajax
ASP
C,C++
C#,.NET
CSS,HTML
Delphi,Kylix
Experience
Flash
Java
JavaScript
PHP
Python
QT
SQL
ShellScript
VB
U :
P :
Register
Lost Password
Other Links
Code Archive
Save Giovanni
JavaScript Category Code
Real Name
:
SharingCode.NET User
Subject
:
Which mouse button was clicked? / Hangi mouse butonu tıklandı?
Description
:
Which mouse button was clicked? / Hangi mouse butonu tıklandı diye merak edenler için
html> <head> <script type="text/javascript"> function whichButton(event){ if (event.button==1){ alert("You clicked the left mouse button!") }else{ alert("You clicked the right mouse button!") } } </script> </head> <body onmousedown="whichButton(event)"> <p>Click in the document. </p> </body> </html>
Rating
:
5.00
(out of 5)
Visitor Voting Booth
:
Excellent
Very Good
Good
Fair
Poor
Copyright © 2006 SharingCode.NET . All rights reserved. Hosted By: SisNetworks