Change text-overflow with JavaScript

Click the "Try it" button to change the text-overflow property of the DIV element:

Lorem ipsum dolor sit amet, consectetuer adipiscing elit.