Tryit Editor v1.8

Source Code:
<!DOCTYPE html> <html> <head> <style type="text/css"> img { float:left; } </style> <script> function displayResult() { document.getElementById("p1").style.clear="left"; } </script> </head> <body> <img src="w3javascript.gif" width="100" height="132"> <p id="p1">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.</p> <input type="button" onclick="displayResult()" value="Clear left side of text"> </body> </html>
Result:
W3Schools.com - Try it yourself