<script type="text/javascript"> function showimg(dirfile) { document.getElementById('bla').innerHTML = '<img src=" '+ dirfile +' " width="90" height="90">'; } </script>