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?

84 of 181 people (46%) answered Yes
Recently 5 of 10 people (50%) 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