I wrote a simple javascript animation code. When I right-click the document, the javascript animation stops and resumes only when the context menu is closed. This only happens in IE, if I do the same in other browsers and the animation will continue.
I want to know if there is any workaround so that the animation will continue even if the context menu opens.
I Searching on Google, what I can find is:
>Disable right-click
>Create custom context menu
But I can’t find why this only happens in IE The reason for the situation.
Can anyone explain why this only happens in IE and is also a possible solution (if any)?
Edit: I have checked IE7 and IE8 browsers in Windows
There is an event called oncontextmenu. When you right-click, it will call the required function. For example:
< head>