open pdf in window pop up

how to open pdf file in a popup window on click of button.

Please give some sample code.

Just use common HTML window.open API with an url of PDF file. There is no need for any special handling, browser is able to render a PDF document without any extra steps.

Thanks for you suggetion.
Yeah,its working fine in browser. My requirement is to open pdf in phonegap application(in device) which is having a window view. So how can I show the PDF in a window for a phonegap application.Please do suggest a solution with sample code ASAP.

Webix can use a pdfviewer component to show the pdf file.
You can create a new HTML view, where you can init the pdfviewer component with URL of the necessary PDF file.

can you please provide the sample code for that ?it will be very helpfull.

I don’t have a full example, unfortunately.

You can check http://docs.webix.com/samples/60_pro/10_viewers/01_pdf.html

It is not working properly in phonegap application,and is there any version compactability?

Please share some more details. Do you have some error message or some other unwanted effect?

I have tried this one…
http://webix.com/snippet/096ef4da