<p>I'm trying to expand navigation options of the context menu on certain elements (specifically, <code>h1</code> and <code>h2</code> tags)
I want to prevent the browser's default action when right-clicking on those elements.</p>

<p>I found nice information at <a href="http://ajaxcookbook.org/disable-browser-context-menu/" rel="nofollow noreferrer">this page</a>.</p>

<p>However, I couldn't find how to disable the context menu for certain elements. Does someone know how to do it?</p>

<p>I'm using prototype as my javascript API.</p>

This will prevent the context menu from appearing on a particular element
```
```
$(it).observe("contextmenu", function(e){
    e.stop();
});
```
```
So, for example stop all H1/H2 tags from showing a context menu
```
```
$$('h1, h2').each(function(it){
    $(it).observe("contextmenu", function(e){
        e.stop();
    });
})
```
```