Vinzenz Mai: Probleme mit dem Ansprechen von img

Beitrag lesen

Hallo Ralf,

»     <script type="text/javascript">  
[code lang=javascript]»         window.resizeTo(600,480);  

>   
>         var fotoName = getURLParam('foto');  
>         document.title = getTitle(fotoName);  
  
// Du möchtest *jetzt* bereits abfragen, ...  
  

>         alert(document.images.length);  
>   
>         function stop() {  
>             window.close();  
>         }  

~~~»  

>     </script>  
>   
>   </head>  
>   <body>  
  
<!-- ... was erst jetzt dem Browser bekannt wird -->  
  

>     <img id='f1' src="img/C02.jpg" border="0" >  

[/code]  
  

> Das Problem besteht darin, dass ich das Bild "f1" nicht über  
> document.images ansprechen kann. document.images.length liefert 0 ab.  
  
Du hast das gleiche Problem, das in [diesem Thread](https://forum.selfhtml.org/?t=188791&m=1257147) behandelt wird.  
  
  
Freundliche Grüße  
  
Vinzenz