WOLFRAM

Hyperlink[uri]

represents a hyperlink that jumps to the specified URI when clicked.

Hyperlink[label,uri]

represents a hyperlink to be displayed as label.

Details and Options

  • The following forms of URIs can be used:
  • "string"a URI such as "http://www.wolfram.com"
    URL["url"]an explicit URL
    File["filepath"]a local notebook file
    {"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 "../file.nb". 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 "Hyperlink" style.
  • When the mouse is over label, it is by default rendered in "HyperlinkActive" style.
  • The following options can be given:
  • ActiveStyle "HyperlinkActive"style to add when hovering over the hyperlink
    BaseStyle"Hyperlink"base styles for the hyperlink
    HyperlinkAction "New"action to take when following the hyperlink
  • Supported URI types include "http", "file", "ftp", and "mailto".
  • URIs that begin with "paclet:" directly access Wolfram System documentation and other resources.
  • Hyperlinks of different types are handled as follows:
  • notebook file URIopen in current Wolfram System 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.
  • clicking a hyperlink will always open a new notebook window, even if an existing window could have been used.
  • In a cloud notebook, Hyperlink with a target outside that notebook will open a new browser window or tab by default. The option HyperlinkAction"Recycled" may be given to reuse the existing view.

Examples

open allclose all

Basic Examples  (2)Summary of the most common use cases

Out[1]=1

Create a link to the documentation:

Out[1]=1

Scope  (3)Survey of the scope of standard use cases

Use Style and other functions to change the appearance of the link:

Out[1]=1

The label can be any expression:

Out[1]=1

Convert a URL object to a link:

Out[1]=1

Options  (10)Common values & functionality for each option

ActiveStyle  (1)

Specify the style when the mouse is over the hyperlink:

Out[1]=1

Show no change in style:

Out[2]=2

Alignment  (1)

Change the alignment within the link:

Out[1]=1

Appearance  (1)

Predefined hyperlink appearances:

Out[1]=1

The same appearances when the hyperlink is clicked:

Out[2]=2

Background  (1)

Change the background color:

Out[1]=1

BaselinePosition  (1)

Align the link with surrounding text:

Out[1]=1

Enabled  (1)

By setting Enabled->False, disable a link:

Out[1]=1

FrameMargins  (1)

Add margins within the clickable area:

Out[1]=1

ImageMargins  (1)

Add margins outside of the hyperlink:

Out[1]=1

ImageSize  (1)

Change the overall size:

Out[1]=1

HyperlinkAction  (1)

Create a link that recycles the current cloud notebook view:

Out[1]=1

Applications  (1)Sample problems that can be solved with this function

Use hyperlinks on individual curves (click curve to activate):

Out[1]=1

Properties & Relations  (1)Properties of the function, and connections to other functions

Use StatusArea to change the message in the status area:

Out[1]=1
Wolfram Research (2007), Hyperlink, Wolfram Language function, https://reference.wolfram.com/language/ref/Hyperlink.html (updated 2020).
Wolfram Research (2007), Hyperlink, Wolfram Language function, https://reference.wolfram.com/language/ref/Hyperlink.html (updated 2020).

Text

Wolfram Research (2007), Hyperlink, Wolfram Language function, https://reference.wolfram.com/language/ref/Hyperlink.html (updated 2020).

Wolfram Research (2007), Hyperlink, Wolfram Language function, https://reference.wolfram.com/language/ref/Hyperlink.html (updated 2020).

CMS

Wolfram Language. 2007. "Hyperlink." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2020. https://reference.wolfram.com/language/ref/Hyperlink.html.

Wolfram Language. 2007. "Hyperlink." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2020. https://reference.wolfram.com/language/ref/Hyperlink.html.

APA

Wolfram Language. (2007). Hyperlink. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Hyperlink.html

Wolfram Language. (2007). Hyperlink. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Hyperlink.html

BibTeX

@misc{reference.wolfram_2025_hyperlink, author="Wolfram Research", title="{Hyperlink}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/Hyperlink.html}", note=[Accessed: 26-March-2025 ]}

@misc{reference.wolfram_2025_hyperlink, author="Wolfram Research", title="{Hyperlink}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/Hyperlink.html}", note=[Accessed: 26-March-2025 ]}

BibLaTeX

@online{reference.wolfram_2025_hyperlink, organization={Wolfram Research}, title={Hyperlink}, year={2020}, url={https://reference.wolfram.com/language/ref/Hyperlink.html}, note=[Accessed: 26-March-2025 ]}

@online{reference.wolfram_2025_hyperlink, organization={Wolfram Research}, title={Hyperlink}, year={2020}, url={https://reference.wolfram.com/language/ref/Hyperlink.html}, note=[Accessed: 26-March-2025 ]}