Wednesday, October 31, 2012

Start downloading file on page load

We can do this by using window.location.href

<body onload="javascript:window.location.href='http://yoursite.com//filename.zip';">