[thelist] Image Empty Reference

hersho robinzon hershelr at netvision.net.il
Mon May 10 12:14:44 CDT 2004


How can I code an HTML page with an <img> tag that has no image file associated with it? What I mean is I want to do basically this:

<img src="" />

The reason I want such a strange markup is because depending on other aspects of the page, the src attribute will be assigned by Javascript. When the page loads, however, the above code will generate a 404 error on the server.

I suppose I could generate the img tag itself via Javascript as well, but if someone knows how to assign an empty reference to the existing tag, that would be ideal for me.

Thanks,
Hershel






More information about the thelist mailing list