Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2008-06-25
3
Medium Priority
?
165 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 2000 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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

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 …
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…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

688 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