How to force PDFs into frames?

N

not

I maintain a large (~500 html page) site that is built using frames.
On the site there are more than 75 PDF documents, with more on the
way. Search engines like Google are picking up the PDFs, and as such
we are getting a lot of hits specifically on these PDF documents.

But the site as intended would display said PDF documents within a
frame, giving it the desired context (in other words, navigation bars
above, providing links to more relvant info in html and more PDFs).

What I seek to do is insert a snippet of javascript code into each PDF
that would essentially follow the logic of "if parent, then display in
frame," BUT I don't wish to create a specific frameset file to
correspond to each PDF.

What I want is something that works thusly: "if this PDF is not in a
frame, launch browser and a frameset file that will put navbar.html on
top and THIS PDF FILE below it." Ideally I could then use this same
exact code in all 75! (and future) PDF documents.

I haven't found a way to do this with javascript yet. Can anyone help?
 

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,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top