Just starting out? Need help? Post your questions and find answers here.
Dirk Geppert
Posts: 177
Joined: Fri Sep 22, 2017 7:02 am

DisableGadgetContextMenu possible?

by Dirk Geppert Wed May 13, 2020 6:29 am

Code: Select all
Procedure DisableSiteContextMenu(state)
  If state
    ! $('body').attr("oncontextmenu", "return false;");
    ! $('body').attr("oncontextmenu", "");

Is it possible to disable the contexmenu for a special gadget, e.g. the listicongadget() to use the own popupmenu?
Otherwise I could working with onfocus and lostfocus and global en/disable..
Return to Coding Questions

Who is online

Users browsing this forum: No registered users and 6 guests