Solved

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

Posted on 2008-06-25
3
164 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Get HTML5 Certified

Want to be a web developer? You'll need to know HTML. Prepare for HTML5 certification by enrolling in July's Course of the Month! It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

Adobe Dreamweaver CS5 is a WYSIWYG web page editor that has advanced HTML, CSS, and Javascript rendering functionality and is probably the most well-known HTML editor available. Much of Dreamweaver's appeal centers around the Design View interfac…
This article is very specific and is only intended to help if you are installing Dreamweaver 8 in a Windows 7 environment with Office 2007 installed.   I'm not sure why Microsoft tends to release OS' that should not be released but they do.  Windows…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

631 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