<!DOCTYPE html><html><body><img id="compman" name="compman"src="compman.gif" alt="Computerman" width="107" height="98"><br><script>document.write("Image name: ");document.write(document.getElementById("compman").name);</script></body></html>希望本文所述对大家的javascript程序设计有所帮助。