PDF INTO MSIE POPUP

P

Paolo

Hi at all

I tryed to show a pdf into a popup but with msie page is blank

My code:



var pdf="pdfname.pdf";

if (pdf!==""){

var p = "dialogWidth: 480px; dialogHeight: 380px; center: 1; scroll: 1;
resizable=yes;";

if (document.all) {

window.showModalDialog("pdf, null, p);

}

else
{window.open(pdf,"","toolbar=no,location=no,scrollbars=no,resizable=yes,width=450,height=350");}

}



Help please

Thank in advance
 
P

Paolo

""Álvaro G. Vicario""

wrote
Don't you get a JavaScript error due to unmatched quotes?

sorry for error rewriting my script


window.showModalDialog(pdf, null, p);



but it always do not work

It open a blank page
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top