codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || RAM 
Search Site:



Javascript OnMouseDown

Article by: Jeff Anderson (9/1/2006)
Bookmark us now! Add to Favourites
Email a friend! Tell a friend
Summary: The javascript event handler that is called when you click the mouse button.
Viewed: 94593 times Rating (49 votes): 
 4.6 out of 5
  Rate this Article   Read Comments   Post Comments

Javascript OnMouseDown



When you click the left mouse button, this calls the javascript onmousedown event. This can be useful if you want to call separate functions or actions when the user clicks on a particular part of the page. It's often used in association with an image, for example:

Select All Code


You can also use onmousedown for anywhere on the page, by inserting it into the body tag, as follows:

Select All Code


or you could use it to call a separate function:

Select All Code










Useful Links


CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
Rate this article:     Poor Excellent
View highlighted Comments
User Comments on 'Javascript OnMouseDown'








Recent Forum Threads
•  Run a program both on windows and linux
•  VERO.SurfCAM.v2014
•  Schlumberger.Petrel.V2013.2
•  Petrel.V2013.2
•  Altair.HyperWorks.v12
•  VoluMill.v6.1
•  VoluMill.NEXION.6
•  VERO.SurfCAM.v2014
•  Schlumberger.Petrel.V2013.2


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2015