So, I have a part on my site where I display pdf in an iframe. This works great on computers. However, some mobile devices start downloading PDFs immediately after downloading the website.
This is the code I'm using.
<div class="showbox" style="display: none;">
<div class="embed-container">
<iframe src="/images/pdf-file.pdf" style="border:none;"></iframe>
</div>
</div>
Therefore, I want mobile device users to be able to visit a website without automatically downloading a PDF file.
Any ideas how to do this?
Chris source
share