I need to do something very similar to this. However, I'm not clear on the java script. Do you leave the script exactly as shown (onclick="setTimeout('document.location.href=document.location.href',1000)") or do you replace document.location with something? If so, what?
I tried adding the onclick statement, as is, to my download button and I see no difference in behavior. Nothing is updated on the page.