123456789101112131415161718<!DOCTYPE html>function alignImg(){document.getElementById("compman").align="right";}id="compman" src="/statics/images/w3c/eg_compman.gif" alt="Computerman" width="107" height="98"Some text. Some text. Some text. Some text.type="button" onclick="alignImg()" value="Align Image"