Selects all divs in the document and returns the DOM Elements as an Array, then uses the built-in reverse-method to reverse that array.
Edit code and click me
Your Result
(Some examples do not work in Google Chrome):
Reversed -
One
Two
Three
Edit the code above and click to see the result
www.xhtml.co.il
- Try it yourself