Javascript: Changer la taille d’une image

Author:

Javascript: Changer la taille d'une image
Download

<html>
  <head>
 
  </head>
  <body>
    <html>
<head>
<script type="text/javascript">
function setHeight(){
    var x=document.images
    x[0].height="150"
}
</script>
</head>
 
<body>
<img src="logo.png" width="107" height="98" />
<form>
<input type="button" onclick="setHeight()" value="Changer la taille">
</form>
</body>
 
</html>
  </body>
</html>

Cet article Javascript: Changer la taille d’une image est apparu en premier sur .