Skip to main content
Participant
January 15, 2020
Answered

Can we setup that target="_blank" as the default for all hyperlinks? <base target...not working LMS

  • January 15, 2020
  • 2 replies
  • 588 views

Can this be setup in DW, that when I create a hyperlink, the DEFAULT is to add target="_blank"? I need this desperately and the <base target... is not working within the LMS I use. Thank you in advance.

This topic has been closed for replies.
Correct answer Nancy OShea

See my reply to your other post on the same topic.

https://community.adobe.com/t5/dreamweaver/dreamweaver-defalut-target-blank-hyperlinks/m-p/10859358#M57269

 

2 replies

Nancy OShea
Community Expert
Nancy OSheaCommunity ExpertCorrect answer
Community Expert
January 16, 2020
Nancy O'Shea— Product User & Community Expert
Jon Fritz
Community Expert
Community Expert
January 15, 2020

There's no way to do it within the Properties window itself or within the program files, that I'm aware of. I bet if the right program file could be found, setting the target autommatically might be possible, but I wouldn't know where to start looking.

You could set up a "Targeted Link" Snippet in DWCC2015 and earlier, or DWCC2020 and newer, to do it though...

1. In the Snippets window, click the New Snippet button
2. In the dialogue that comes up, give the Snippet a name
3. Make sure Wrap Selection is chosen for Snippet Type
4. Add: <a href="#" target="_blank"> to the Insert Before field
5. Add: </a> to the Insert After field
6. Hit OK

Select the item or text you want to add a link to and then doubleclick the Snippet. You then add the actual link as normal in the Properties window (replacing the # symbol). In CC2015 and earlier, you can also link the Snippet to a Keyboard Shortcut. That is not possible in CC2020+ however.

Another option would be to add the target info after all of your links have been created using the Find & Replace Tool, but that would get pretty muddy if you already have some targets set.