.rightClick()

  • function
FuncUnit.prototype.rightClick  

rightClick(options [,success])

Right clicks an element. This typically results in a contextmenu event for browsers that support it.

Parameters

  1. options {Object}

    options to add to the mouse events. This works the same as .click()'s options.

  2. success {function()}Optional

    a callback that runs after the click, but before the next action.

Returns

{funcUnit}

returns the funcunit object for chaining.