Skip to content
Advertisement

Tag: contextmenu

How to test if contextmenu is open or displayed?

I have a page with a few pre tags in it containing computer code. I have a mouseover event listener, which highlights all the code in the pre tag. I also have it remove the highlighting on a mouseout event. Works real well if you use the keyboard to copy (ctrl-C). But if you want to right-click and copy from

Advertisement