wordwrap-05.html (565B)
1 <!DOCTYPE html> 2 <!-- Test unsetting word-wrap: break-word dynamically --> 3 <html> 4 <head> 5 <meta http-equiv="content-type" content="text/html; charset=UTF-8"> 6 <title>Test Wordwrap</title> 7 <script type="text/javascript"> 8 function SwapStyle() 9 { 10 par = document.getElementById("pp"); 11 par.style.wordWrap = "normal"; 12 } 13 </script> 14 </head> 15 <body onload="SwapStyle()"> 16 <p id="pp" style="width: 100px; word-wrap: break-word;">It's lipsmackinthirstquenchinacetastinmotivatingoodbuzzincooltalkinhighwalkinfastlivinevergivincoolfizzin Firefox!</p> 17 </body> 18 </html>