@@wonk
Bildobjekt = document.getElementsByName("Bild"); alert(Bildobjekt.naturalWidth);
erhalte ich aber immer nur "undefined".
console.debug(Bildobjekt)
hast du schon gemacht? Und die eckigen Klammern bei dessen Ausgabe übersehen?
Das s in getElementsByName
hat schon seine Bewandtnis.
Ich habe zwar was vom erforderlichen onload-Ereignis gelesen
Je nachdem, wann das Script ausgeführt wird, ist ein onload
-Eventhandler nicht erforderlich.
🖖 Live long and prosper
--
“In my home, the America I love, the America I've written about, that has been a beacon of hope and liberty for 250 years, is currently in the hands of a corrupt, incompetent and treasonous administration. Tonight, we ask all who believe in democracy and the best of our American spirit, to rise with us, raise your voices against authoritarianism, and let freedom reign.”
— Bruce Springsteen, Manchester 2025-05-14
“In my home, the America I love, the America I've written about, that has been a beacon of hope and liberty for 250 years, is currently in the hands of a corrupt, incompetent and treasonous administration. Tonight, we ask all who believe in democracy and the best of our American spirit, to rise with us, raise your voices against authoritarianism, and let freedom reign.”
— Bruce Springsteen, Manchester 2025-05-14