I have written below code in javascript:
javascript code:
var fs=null;
function initFS() {
window.requestFileSystem =window.requestFileSystem || window.webkitRequestFileSystem;
window.requestFileSystem (window.TEMPORARY, 1024 * 1024, function (filesystem) {
fs = filesystem;
}, errorHandler);
}
html code:
<input type="button" id="button2" name="click" value="show" onclick="initFS();" />
but after clicking on show button in initFS function, after line window.requestFileSystem (window.TEMPORARY, 1024 * 1024, function (filesystem) {
it is showing error as "uncaught type error". Is there any mistake in my code?