UIHANDLER OnHyperlinkClick

Fires when clicking a hyperlink.
 (self, link, text, button, region, left, bottom, width, height)
== Arguments ==
;self : - The widget registered for this script handler.
;link : - The link payload (e.g. "item:6948:0:0:0:...").
;text : - The link label (e.g. "[Hearthstone]").
;button : - "LeftButton", "RightButton", "MiddleButton", "Button4", "Button5", ..., "ButtonN"
;region : - The the hyperlink belongs to.
;left : - The x position of the hyperlink in pixels, relative to the region top left corner.
;bottom : - The y position of the hyperlink in pixels, relative to the region top left corner.
;width : - Hyperlink width in pixels.
;height : - Hyperlink height in pixels.
== Details ==
* Requires (), or a child frame defined in XML with .
== Examples ==
Using () to mimick the default chat frames.
local frame = CreateFrame("ScrollingMessageFrame")
frame:SetScript("OnHyperlinkClick", ChatFrame_OnHyperlinkShow)
Responding to a hyperlink contained in a child .
local frame = CreateFrame("Frame")
frame:SetPoint("CENTER")
frame:SetSize(200, 50)
frame:SetHyperlinksEnabled(true)
frame:SetScript("OnHyperlinkClick", function(self, link, text, button)
	SetItemRef(link, text, button, self)
end)
local fontString = frame:CreateFontString(nil, "ARTWORK", "GameFontNormal")
fontString:SetAllPoints()
fontString:SetText(select(2,GetItemInfo(6948)))
== Patch changes ==
== References ==