You are here: irt.org | FAQ | JavaScript | Image | Q537 [ previous next ]
Only in Internet Explorer 4+:
<img src="picture.gif" alt="text">
<script language="JavaScript"><!--
alert(document.images[0].src);
if (document.all) {
alert(document.images[0].alt);
document.images[0].alt = 'Updated text';
alert(document.images[0].alt);
}
//--></script>