Adding oncontextmenu with appendChild()
<p>Hey is it possible to add a oncontextmenu to an element via JavaScript if you use appendChild???</p>

<p>I set my div like this:</p>

<pre><code>var d = document.createElement('div');
d.id = 'G';
d.className = 'Ouput';  
document.getElementById('E').appendChild(d);    
</code></pre>

<p>But I'm wondering how i add:</p>

<p><code>oncontextmenu="return false;"</code></p>

<p>Can it be added to the Div properties before I append child or do I have to add it afterwards some how ?</p>
