Implement Agent with JavaScript (implement the right-click menu) (2)

xiaoxiao2021-03-06  50

Implement the Agent with JavaScript (implement the right-click menu)

Since it is displayed in the right-click menu, then we have to intercept the event on the elf onContextMenu.

Then put the HTML of the right-click menu into a function, one-on-this menu layer is hidden function getMenuhtml ()

{

VAR Menuhtml = "