faqts : Computers : Programming : Languages : JavaScript : Browser Settings

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

86 of 184 people (47%) answered Yes
Recently 6 of 10 people (60%) answered Yes

Entry

How do I clear image cache in javascript ?

Jul 11th, 2001 02:22
meng xianhui, Carlos Yo, joe guo, amxh@21cn.com


You can do like this:
<script>
var today=new Date()
var time=today.getSeconds()
var i="http://lucky.myrice.com/back.jpg?"+time.valueOf();
document.write("<img src="+i+">")
</script>
pls visit http://lucky.myrice.com