Code: Select all
Procedure DisableSiteContextMenu(state)
If state
! $('body').attr("oncontextmenu", "return false;");
Else
! $('body').attr("oncontextmenu", "");
EndIf
EndProcedure
Otherwise I could working with onfocus and lostfocus and global en/disable..