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
Sponsored by: FindMyHosting - Web Hosting Search
Summary: The javascript event handler that is called when you click the mouse button.
Viewed: 11616 times Rating (41 votes): 
 4.9 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
• Ask for suggestions on blog template :)
• Re: different image displayed based on screen resolution
• Re: Get the image name
• A new simple way to make a image slider- Javascript Code
• Re: convert minutes into hours and minutes
• how to create forum on my own in java is it possible
• Re: mkdirs
• Help with recursion { recursive helper function }
• Re: Web Development Project


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