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: 70770 times Rating (44 votes): 
 4.7 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'


To post comments you need to become a member. If you are already a member, please log in .

 











Recent Forum Threads
• Significant Factors
• Perl array access
• Re: huffman encoding and decoding in C++...
• Perl One Liner: Replace {(
• Re: html including php, accessing the functions
• Something like an INI editor or a DelimitedText-Editor
• Error Deleting File or Folder
• Re: How can use ASP.NET RegularExpressionValidator for alphanumeric 10 digit input
• Re: drop-down menu selected value


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