How to provide a shorthand for writing recurring accesses to objects in javascript to style an element?
<p>How to write javascript to style an element in single line?
For example,</p>

<pre><code>document.getElementById('add_new').style.top=-15;
document.getElementById('add_new').style.position='absolute';
</code></pre>

<p>It is possible to make it array or single line to style the element using javascript itself?</p>

<p>How to provide a shorthand for writing recurring accesses to objects?</p>
