- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2017 11:06 AM
HI,
I have a SR which needs to display a couple of links.
I have used Macro for displaying those links, but the issue is when i click those links they are opening on the same window, i dont want that to happen. When the user clicks the link should oopen in a new window or new tab.
I know there is a way to achievie this and i was trying to remember thatbut i was unable to ?
Can anyone please help me?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2017 11:07 AM
if you are using an anchor "<a>" element, you can use target, like this: <a target="_blank" href="whatever">my link</a>. Keep in mind, modern browsers now seem to frown on this because they want the user to control where the link opens, and if the browser doesn't allow popups on your site, the user may not notice the browser has blocked a popup.
However, most browsers still support this convention.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2017 11:07 AM
if you are using an anchor "<a>" element, you can use target, like this: <a target="_blank" href="whatever">my link</a>. Keep in mind, modern browsers now seem to frown on this because they want the user to control where the link opens, and if the browser doesn't allow popups on your site, the user may not notice the browser has blocked a popup.
However, most browsers still support this convention.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2017 11:13 AM
Thanks Jonathan It worked perfectly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-08-2022 06:26 AM
Hi Jon,
could you help me on it please
it is File path url, How can we do it.
var attachLink = '<a href="file://corp/sites...etc" target="_blank">' + 'Corp/sites' + '</a>'; //put your table name
template.print(attachLink + "<br/>");
in email preview it is not showing as clickable link. showing as normal text.
How can fix tis please
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2017 11:07 AM
Where are you displaying the links ? Can you please put a screenshot of the form ?
Regards!