Page 1 of 1

Setting <a> target for hyperlinks

Posted: Tue Dec 12, 2017 5:08 am
by EricNat
Is there any way to allow the user to set the "target" for the <a href> when customizing the hyperlink using TRVInsertActionHyperlink? If not, could this be added to the wish list? We would like the user to be able to set the target as "_blank", "_new", etc. to determine where to open the hyperlink.

Also, on the form that shows when you add a hyperlink, it may be good to rename the "target label" as "URL" since the word "target" has a specific meaning for <a href>'s and it's where the link should open in the browser, not the URL/link itself.

Thanks!

Re: Setting <a> target for hyperlinks

Posted: Tue Dec 12, 2017 12:13 pm
by Sergey Tkachenko
Yes, you can customize links before saving to HTML using OnWriteHyperlink event, see http://www.trichview.com/help/idh_trich ... rlink.html

As for "target" vs "URL". "Target" is more common word, it can include URLs, bookmarks/anchors/checkpoint, local files, or application-specific targets (which you can process specially in OnJump event). All this can be entered in that dialog.