This example is for oncontextmenu event attribute, right click in any of the document area to trigger oncontextmenu event and execute script to show context menu.