Results 1 to 2 of 2

Thread: Document.Onclick?

  1. #1
    Join Date
    Dec 1969

    Default Document.Onclick?

    Im looking for some sort of mousebutton control.<BR><BR>How can you see if someone right- och left- clicks on a page?<BR><BR>Not on an image or button but anywhere on a page.<BR><BR>ThanX 4 answer

  2. #2
    MikeD Guest

    Default RE: Document.Onclick?

    I am going to assume that you are using IE&#039s DOM, I don&#039t know much about Netscapes DOM - who needs to when you are developing on intranets :) I would guess that Netscape has a similar implementation of this element and event.<BR><BR>There is an event for the body element called &#039onmousedown&#039. One of the events properties is &#039button&#039 that will tell you which one was pressed. <BR><BR>I found this information in the MSDN Web Workshop - DHTML Reference - Events. If you don&#039t have the CD version they have the same info online - it is just not as fast and easy to search!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts