lundi 7 août 2017

javascript function is not displaying anchor tag

let css_pdf_zero = ['cssFoundations.pdf', 'cssCookBook.pdf'];
           
            function pdf_load_zero(pdf, path){
            path = path || 'pdf-testing/'; // default path here
                 var pdfAnchor = '<a href="' + path + '" alt = "">' + '</a>';
                document.write(pdfAnchor); document.close();
            }
            $('#tabs-one1').html(pdf_load_zero(css_pdf_zero));
Can anyone tell me what is wrong with this code?

Aucun commentaire:

Enregistrer un commentaire