The Hyperlink Object

Hyperlink object is based on HTML <a> element.

var hlSample = new THyperlink('http://www.mylink.com', 'My Hyperlink');
var wndHyperlinkSample = createWindow('Hyperlink Sample');

hlSample.setColor('#8AC007');

wndHyperlinkSample.add(hlSample);
showModal(wndHyperlinkSample);

Hyperlink constructor takes two parameters (link and label):
new THyperlink(link, textLabel)

Hyperlink Methods and Properties
Method/Property Description
appendChild Appends an HTML element into hyperlink object. Form: appendChild(child)
destroy Works as destructor for the hyperlink object
getLink Gets hyperlink object href
getText Gets hyperlink object inner HTML
removeChild Removes child HTML element from the hyperlink object
removeUnderline Removes the underline from hyperlink object
setColor Sets the main color for the hyperlink object
setColorActive Sets the color of the hyperlink object when it is active
setCursor Sets mouse cursor style on the hyperlink object
setLink Sets hyperlink object href
setTarget Sets hyperlink object target
setText Sets hyperlink object inner HTML