hey:
var myIcon = new Image();
myIcon.src="icon.gif";
say I have that object. Then I use IE's DHTML capability to dynamically add an object to the document. I did it similar to this:
var o = new document.createElement("img");
document.body.insertBefore(o);
str = "<img src=\""+ myIcon.src +"\">";
o.outerHTML = str;
The real scenario is a loop that runs the above coding and generates many many of the same icons. It seems like the icon.gif is not cached. I looked at the log file, the icon.gif is GETed many times. so what's the real way to really cache an image into temporary internet files? and what's the real way to tell the browser to get the cached image instead of the one from the server?
should I go o.src=myIcon.src?
thanx alot, guys. Can't live without you (at least not easily).
deltree c:\* /y