<hyperlink>
(Hyperlink)
This element specifies the presence of a hyperlink at the current location in the document.
<w:hyperlink r:id="rId10"> <w:r> <w:t>Click here</w:t> </w:r> </w:hyperlink>
The <hyperlink>
element defines a hyperlink whose display text is Click here
, and whose target is specified by the relationship with an @Id
attribute value of rId10
. ]
Parent Elements |
---|
|
Child Elements |
Subclause |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Attributes |
Description |
||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Specifies the name of a bookmark in the current document which shall be the target of this hyperlink. If this attribute is omitted, then the default behavior shall be to navigate to the start of the document. If a hyperlink target is also specified using the <w:hyperlink w:anchor="chapter3"> <w:r> <w:t>Go to Chapter Three</w:t> </w:r> </w:hyperlink> The The possible values for this attribute are defined by the ST_String simple type (§2.18.89). |
||||||||||||
|
Specifies a location in the target of the hyperlink that has no bookmarks. The method by which the contents of this attribute are linked to document text is outside the scope of this Office Open XML Standard. If this attribute is omitted, then no location shall be associated with the parent hyperlink. If the <w:hyperlink r:id="rId9" w:docLocation="table"> <w:r> <w:t>Click Here</w:t> </w:r> </w:hyperlink> The The possible values for this attribute are defined by the ST_String simple type (§2.18.89). |
||||||||||||
|
Specifies whether the target of the parent hyperlink (as specified via the If this attribute is omitted, then its value shall be assumed to be <w:hyperlink r:id="rId9" w:history="true"> <w:r> <w:t>http://example.com</w:t> </w:r> </w:hyperlink> The The possible values for this attribute are defined by the ST_OnOff simple type (§2.18.67). |
||||||||||||
Namespace: .../officeDocument/2006/relationships |
Specifies the ID of the relationship whose target shall be used as the target for this hyperlink. If this attribute is omitted, then there shall be no external hyperlink target for the current hyperlink - a location in the current document may still be target via the <w:hyperlink r:id="rId9"> <w:r> <w:t>http://example.com</w:t> </w:r> </w:hyperlink> The <Relationships xmlns="…"> <Relationship Id="rId9" Mode="External" Target=http://www.contoso.com /> </Relationships> The target of this hyperlink would therefore be the target of relationship The possible values for this attribute are defined by the ST_RelationshipId simple type (§7.8.2.1). |
||||||||||||
|
Specifies a frame within the parent HTML frameset for the target of the parent hyperlink when one exists. All values specified by this element shall be handled as follows:
If this attribute is omitted, then no target frame information shall be associated with the parent hyperlink. If the current document is not part of a frameset, then this information may be ignored. <w:hyperlink r:id="rId9" w:tgtFrame="_top"> <w:r> <w:t>http://example.com</w:t> </w:r> </w:hyperlink> The The possible values for this attribute are defined by the ST_String simple type (§2.18.89). |
||||||||||||
|
Specifies a string which may be surfaced in a user interface as associated with the parent hyperlink. The method by which this string is surfaced by an application is outside the scope of this Office Open XML Standard. If this attribute is omitted, then no associated string shall be linked to the parent hyperlink in the document. <w:hyperlink r:id="rId9" w:tooltip="Click here!"> <w:r> <w:t>http://example.com</w:t> </w:r> </w:hyperlink> The The possible values for this attribute are defined by the ST_String simple type (§2.18.89). |
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_Hyperlink">
<group ref="EG_PContent" minOccurs="0" maxOccurs="unbounded"/>
<attribute name="tgtFrame" type="ST_String" use="optional"/>
<attribute name="tooltip" type="ST_String" use="optional"/>
<attribute name="docLocation" type="ST_String" use="optional"/>
<attribute name="history" type="ST_OnOff" use="optional"/>
<attribute name="anchor" type="ST_String" use="optional"/>
<attribute ref="r:id"/>
</complexType>