User Tools

Site Tools


Sidebar

Translations of this page:

Special Targets for Hypertext Links, New Windows

Applies to HTML Viewer, IE Browser publications.

Hyperlinks may have a target. HTML Executable provides you with some pre-defined targets that you can use not only for hyperlinks in your publications, but also for menu items, TOC entries

Syntax:

<a target="[target]" href="[destination URL]">Your link</a>

List of predefined targets:

  • _blank: this target in IE Browser publications creates a popup window (to avoid this behavior, check out the NoAutomaticPopup property). However, HTML Viewer publications won't open a new window but they will display the page in the main window except if the link is external, i.e. http://, ftp://, etc… In fact, for security reasons, you cannot access compiled pages outside a publication. If you want to open a compiled page in a new window, then use _henewinstance.
  • _hepopup_[name]: opens a new pop-up window whose name is set to [name] (no space, alphanumeric characters only for [name]).
  • _heexternal: forces the publication to open the destination URL in the default web browser (Internet Explorer or Mozilla Firefox for instance).
  • _henewinstance: opens a new stand-alone instance of the publication that will display the specified URL.
  • _heopenit: extracts the file specified by [destination URL] (it must be the virtual path starting from the root without the protocol: MyPath\MyFile.ext) and runs the associated program to open this file. The file is then deleted when the publication is closed.
  • _hemain: opens the destination in the main window.

1BULLET Example: this will start a new instance and display “index.htm”:

<a target="_henewinstance" href="index.htm">My link</a>

1BULLET _heopenit can be used for any document file like executable program files, text files, Microsoft Office® files, etc…

<a target="_heopenit" href="mydocument.docx">Open this Word document</a>
externallinks.txt · Last modified: 2012/09/14 22:47 (external edit)