Solved

How do I change the link target for multiple pdf documents?

Posted on 2008-06-25
3
161 Views
Last Modified: 2013-11-05
I have many pdf documents in a website that I want to have each one open in a new window when the each link is clicked on. How do I change all the pdf document links in a entire website to target _blank without changing each one individually?
0
Comment
Question by:Barbara69
  • 2
3 Comments
 
LVL 70

Accepted Solution

by:
Jason C. Levine earned 500 total points
ID: 21872137
Hi Barbara69,

Do a Find and Replace on the entire site.

Set the search parameters to source code and search for the following string:

.pdf"

Replace with:

.pdf" target="_blank"

You should probably do a Find All first just to make sure you don't catch anything you don't want to by accident.
0
 

Author Comment

by:Barbara69
ID: 21873765
Thank you so very much. You saved me a lot of time. I had tried find and replace, but I was using *.pdf for my search string, needlessly to say, unsuccessfully. Thanks once again.
0
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 21877511
You're welcome.

*.pdf will not work inside of Dreamweaver but you CAN use regular expressions to get the same functionality.  In this case, it was easier to do a normal F/R and not muck around with regex.
0

Featured Post

ScreenConnect 6.0 Free Trial

Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
background image shifts depending on browser 17 369
Editing PHP within Adobe DreamWeaver 11 185
Semi-transparent PNG 5 153
CS6 Adobe Dreamweaver Alphanumeric list 4 99
For those who don't know, Adobe Dreamweaver is a popular commercial web editor that enables you to design, build and manage complex websites. The editor is a WYSIWYG (What You See Is What You Get) web editor, which means that you can create your web…
I still run into .cgi files every now and then. In some instances, I actually prefer the simplicity of a .cgi script to other options. Since I use DreamWeaver extensively, what I needed was a way to open .cgi scripts in Dreamweaver. And I wanted to …
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

823 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question