I'm new to javascript so while doing some learning i find out that elements with some id available just like
html part
<canvas id="someid"><canvas>
js part
someid.someProperty = something; // works as well as getElementById('someid')
But in all tutorials i found it's told to use getElementById. Sow what benefits of one or another ways of doing this? What way should i prefer? Checked in Firefox, Opera, DWB and geany internal browser(webkit).