Why right-click Stop JavaScript in IE Browser

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>


​​​​​​

Just try to call the function to run the animation twice-once on the page launch, and then through the oncontextmenu.

UPDATE

Check this! The script here prevents the original right-click menu from being displayed during the animation. In my case…

I wrote a simple javascript animation code. When I right-click When the document is clicked, the javascript animation stops and only resumes when the context menu is closed. This only happens in IE, if I do the same in other browsers, the animation will continue.

I want to know if there is any workaround so that the animation will continue even if the context menu is opened.

I searched on Google and what I can find is:

>Disable right click
>Create a custom context menu

But can’t find the reason why this happens only in IE.

Can anyone explain why this only happens in IE, Is it also a possible solution (if any)?

Edit: I have checked IE7 and IE8 browsers in Windows

There is an event called oncontextmenu. Right click When, it will call the required function. For example:





​​​​​

Just try to call the function to run the animation twice-once on the page launch, and then through the oncontextmenu.

UPDATE

Check this! The script here prevents the original right-click menu from being displayed during the animation. In my case…

Leave a Comment

Your email address will not be published.