PDFs in a DIV |
PDFs in a DIV |
Norfolkman365 |
Oct 3 2016, 09:16 AM
Post
#1
|
Group: Members Posts: 1 Joined: 3-October 16 Member No.: 24,868 |
I have a list of items on a webpage and if I click on one, it will open a pdf associated with that item....Simple enough!
However, I want that pdf to open in a DIV which will be located elsewhere on the page and, of course, any of the other links clicked on, to open in the same DIV. I feel this should be simple in HTML but need a pointer in the right direction. I don't have access to PHP. Many thanks in advance, |
pandy |
Oct 3 2016, 10:12 AM
Post
#2
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,731 Joined: 9-August 06 Member No.: 6 |
You can't open files in a DIV. You are looking for IFRAME. Maybe it can be done with OBJECT and JavaScript also, but IFRAME should be safer.
Note that if the user don't have their browser configured to allow PDF to be opened in the browser, it won't be. That user will instead get an normal download dialogue. |
Lo-Fi Version | Time is now: 26th April 2024 - 09:47 AM |