This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

Hyperlink

Hyperlink[uri]
represents a hyperlink that jumps to the specified URI when clicked.
Hyperlink
represents a hyperlink to be displayed as label.
  • The following forms of URIs can be used:
"string"a URI such as
{"file.nb",None}a complete local notebook file
{"file.nb","tag"}the first cell with the specified tag in a local notebook file
  • Local notebook files can be specified by relative paths such as . The base of the paths is taken to be the location of the notebook that contains the hyperlink.
  • Hyperlink can be used with graphics or any other expression.
  • Hyperlink objects can appear within graphics.
  • By default, Hyperlink renders label in style.
  • When the mouse is over label, it is by default rendered in style.
  • The following options can be given:
ActiveStyle"HyperlinkActive"style to add when hovering over the hyperlink
BaseStyle"Hyperlink"base styles for the hyperlink
  • Supported URI types include "http", "file", "ftp", and "mailto".
  • URIs that begin with "paclet:" directly access Mathematica documentation and other resources.
  • Hyperlinks of different types are handled as follows:
notebook file URIopen in current Mathematica session
non-notebook file URIopen through operating system
non-file URIopen in a web browser
  • In a standard notebook front end, hyperlinks can be inserted using the Hyperlink item in the Insert menu.
  • Shift clicking a hyperlink will always open a new notebook window, even if an existing window could have been used.
Create a link to the documentation:
In[1]:=
Click for copyable input
Out[1]=
 
Create a link to the documentation:
In[1]:=
Click for copyable input
Out[1]=
Use Style and other functions to change the appearance of the link:
The label can be any expression:
Specify the style when the mouse is over the hyperlink:
Show no change in style:
Change the alignment within the link:
Predefined hyperlink appearances:
The same appearances when the hyperlink is pressed:
Change the background color:
Align the link with surrounding text:
By setting Enabled->False, disable a link:
Add margins within the clickable area:
Add margins outside of the hyperlink:
Change the overall size:
Use hyperlinks on individual curves (click curve to activate):
Use StatusArea to change the message in the status area:
New in 6 | Last modified in 7