As in, I would like it so that if I moved my right border of the web browser to the left, then the text wouldn't move, and instead it would be obscured.

Is there an easy way to do this using JavaScript?