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! || Forums || 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: 93779 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











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
• Game:Colonization based with HTML5 Canvas and JavaScript
• Pointwise.GridGen.v15.18
• Global.Mapper.v15.2.3.b060614
• Geometric_Glovius_Pro_v3.6.1
• VERO.SurfCAM.v2014
• Schlumberger.Petrel.V2013.2
• Petrel.V2013.2
• Altair.HyperWorks.v12
• VoluMill.v6.1


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-2014