Sometime, due to some security reference your application require to stop right click on web page.
In such case you need to write just simple code as shown below.
So now when you run your web page and right click you will get following message.
Hope you like it.
Thanks & Best Regards,