var createObjectURL = window.URL && window.URL.createObjectURL ? function (file) { return window.URL.createObjectURL (file); } : window.webkitURL && window.webkitURL.createObjectURL ? function (file) { return window.webkitURL.createObjectURL (file); } : undefined; if (!createObjectURL) { window.alert('NG'); }