<html> <body> <img id="myImage" src="http://www.java2java.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="myImage.style.styleFloat='right'">Change float to right</button> </body> </html>