var id = localStorage.getItem("id"); var optUrl = localStorage.getItem("optUrl"); var fileName = localStorage.getItem("optName"); var html = ""; var path ="/"+"filePath"+ optUrl if(optUrl==null || optUrl == "null" || optUrl=="" ){ html += "
';
html +='