From The Blog

HTML5 Javascript: get file input upload size locally

28 October 2013, in

if (typeof FileReader !== "undefined") {
var size = document.getElementById('upload_file').files[0].size;
size = Math.round(size / 1024);
console.log(size+' KB');
}



Post a Comment

Change page URL without refreshing page

12 October 2011, in

Can we change page URL, eg. when sending an ajax request, or opening an image in a light-box?

HTML5: Changing the browser-URL without refreshing page

Reference: http://spoiledmilk.dk/blog/html5-changing-the-browser-url-without-refreshing-page

An often overlooked feature of HTML5 is the new "onpopstate" event.



Post a Comment