Клиентский JavaScript. Справочник

         

Пример


Следующая функция выводит значения свойств height, width, hspace и vspace изображения.

function showImageSize(theImage) {
alert('height=' + theImage.height+
      '; width=' + theImage.width +
      '; hspace=' + theImage.hspace +
      '; vspace=' + theImage.vspace)
}



Содержание раздела