'styleFloat' Example
<html> <body> <img id="myImg1" src="http://www.java2s.com/style/logo.png" border="0" style="float:left"> <p style="font-family:verdana; width=200; cursor:hand"> Move the mouse pointer here </p> <button onclick="myImg1.style.styleFloat='right'">Change float to right</button> <button onclick="myImg1.style.styleFloat='left'">Change float to left</button> <button onclick="myImg1.style.styleFloat='none'">Change float to none</button> </body> </html>