These are chat archives for aerze/flyleaf

18th
Aug 2015
Gus
@aerze
Aug 18 2015 19:50
```js
this.link = function (href, text) {
var link = document.createElement('a');
link.setAttribute('href', href);
link.appendChild(this.textNode(text));
return link;
};
// make function called link
this.link = function (href, text) {
        var link = document.createElement('a');  //Create a new HTML Element
            link.setAttribute('href', href);  //set the href attribute to whatever is in the href var
            link.appendChild(this.textNode(text));  //set the text in the HTML Element in to the text var
        return link; //return the Element to be injected into the page
    };