PDFObject Example: Invoking conditional JavaScript upon successful embed (onclick)
Click this link to embed the PDF.
PDFObject.com