• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Dreamweaver: Defalut Target_blank Hyperlinks

New Here ,
Sep 11, 2017 Sep 11, 2017

Copy link to clipboard

Copied

I copy text with hyperlinks to Dreamweaver. I need all hyperlinks with target _blank. How can I set target_blank to the default target in Dreamweaver. I use the newest version of Dreamweaver.

Views

5.0K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Sep 11, 2017 Sep 11, 2017

You can do this pretty easily using the Find & Replace tool...

1. Hit Ctrl + Shift + F to open the F&R window.
2. Click the "Advanced" tab

3. Under "Find In", change the dropdown menu to "Current Document"

4. Next to the "Find In" field, set the tag to "a"
5. Hit the - icon to get rid of any additional function
6. For "Action" choose "Set Attribute"
7. set the next box to "target"
8. For the "To:" box, choose "_blank"
9. Hit "Replace All" and target="_blank" will be added to all links on the page.

Votes

Translate

Translate
Community Expert ,
Sep 11, 2017 Sep 11, 2017

Copy link to clipboard

Copied

You can do this pretty easily using the Find & Replace tool...

1. Hit Ctrl + Shift + F to open the F&R window.
2. Click the "Advanced" tab

3. Under "Find In", change the dropdown menu to "Current Document"

4. Next to the "Find In" field, set the tag to "a"
5. Hit the - icon to get rid of any additional function
6. For "Action" choose "Set Attribute"
7. set the next box to "target"
8. For the "To:" box, choose "_blank"
9. Hit "Replace All" and target="_blank" will be added to all links on the page.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 11, 2017 Sep 11, 2017

Copy link to clipboard

Copied

If all your links go to target_blank, it won't be long before your users will have a lot of opened windows or tabs in their browsers.   See screenshot. 

Is that something you really want to inflict on people?

I think target_blank should be used rarely if at all and only on  outbound links that take people to another website.

Nancy O'Shea— Product User, Community Expert & Moderator
Alt-Web Design & Publishing ~ Web : Print : Graphics : Media

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 11, 2017 Sep 11, 2017

Copy link to clipboard

Copied

I don't use Dreamweaver to develop a webpage. I use it as a html editor to create news.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 11, 2017 Sep 11, 2017

Copy link to clipboard

Copied

It's irrelevant what you use DW for.  All I'm saying is sticking target_blank on ALL links is not a nice thing to do to people. 

 

Nancy O'Shea— Product User, Community Expert & Moderator
Alt-Web Design & Publishing ~ Web : Print : Graphics : Media

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Sep 11, 2017 Sep 11, 2017

Copy link to clipboard

Copied

https://forums.adobe.com/people/Nancy+OShea  wrote

It's irrelevant what you use DW for.  All I'm saying is sticking target_blank on ALL links is not a nice thing to do to people. 

Nancy

Actually, it is relevant. The way I read it is that OP is only using Dreamweaver for the sole purpose of drafting news articles for a website, not developing the website itself (with internal menu links, etc) using Dreamweaver. This suggests that OP is only providing minimal outbound URL links in each of their news article publications.

Now, if OP asked if one thought it was acceptable to use target_blank on ALL links then I suppose your response would be on topic. From what I understand from OP though it looks like you're just trying to bring up non-existent issues that dissuade from what OP was asking.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 11, 2017 Sep 11, 2017

Copy link to clipboard

Copied

alexanderh23349409

I think  https://forums.adobe.com/people/Jon%20Fritz%20II answered your exact question. You can mark his reply as Correct, if you agree.

If I read it correct, Alex is the only user of the page, so the question of whether target _blank everywhere is  a good idea shouldn't apply to his case.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 15, 2020 Jan 15, 2020

Copy link to clipboard

Copied

It doesn't matter WHY she wants it. No one has answered the question. Can this be setup in DW, that when she creates a hyperlink, the DEFAULT is "_blank"? I need this also and the <base target... is not working within the LMS I use. If someone could actually answer the question, that would be great.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 15, 2020 Jan 15, 2020

Copy link to clipboard

Copied

I'm afraid not.  The link target attribute in the HTML Properties Panel is empty by default. 

image.png

You need to populate the target field yourself.

  • Or use Find & Replace as described by Jon_Fritz_II in the Correct Answer above. 
  • Or create a custom code snippet.

 

Nancy O'Shea— Product User, Community Expert & Moderator
Alt-Web Design & Publishing ~ Web : Print : Graphics : Media

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 02, 2021 Mar 02, 2021

Copy link to clipboard

Copied

LATEST

Thanks You

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines