#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2013
    Posts
    12
    Rep Power
    0

    Questions about Right click mouse event


    I am currently working on a minesweeper function,
    which allow the user to lay a Flag when right click on
    any cell on the table.

    How can i do it ? Can anyone give me an example about
    right click function?
  2. #2
  3. CSS & JS/DOM Adept
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jul 2004
    Location
    USA (verifiably)
    Posts
    20,127
    Rep Power
    4304
    Welcome to DevShed Forums, anson920520.

    Here are my two favorite resources for that:
    http://www.quirksmode.org/js/events_...es.html#button
    https://developer.mozilla.org/en-US/...M/event.button
    Spreading knowledge, one newbie at a time.

    Check out my blog. | Learn CSS. | PHP includes | X/HTML Validator | CSS validator | Common CSS Mistakes | Common JS Mistakes

    Remember people spend most of their time on other people's sites (so don't violate web design conventions).

IMN logo majestic logo threadwatch logo seochat tools logo