<script type="text/javascript">
function removeWrapping()
document.getElementById("div1").style.whiteSpace="nowrap";
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
<input type="button" onclick="removeWrapping()" value="Do not let the text wrap" />