how to reach the last but one node in a the DOM using javascript code example
Example: last element id javascript
<div id='print'>
<p id=1>some data</p>
<p id=2>some data</p>
<p id=3>some data</p>
<p id=4>some data</p>
<p id=5>some data</p>
</div>