ImageGear .NET v25.2 - Updated
ImageGear.Web.UI Library / ImageGear.Web.UI Namespace / MouseEvent class / preventDefault Method

In This Topic
    preventDefault Method
    In This Topic
    Prevents the viewer from performing its default action with the event.
    Syntax
    ASP.NET Ajax JavaScript (Specification) 
    function preventDefault() : String;
    ASP.NET Ajax JavaScript (Usage) 
    var resultVar = instanceOfMouseEvent.preventDefault();

    Return Value

    A human-readable representation of the object.
    Remarks

    This is similar to the standard DOM action, preventDefault(). It is primarily used to prevent the viewer from showing its default context menu so you can show your own.

    See Also