webassets/scripts.js
// Create an anchor (<a>) HTML element with text and an optional hyperlink
Create an anchor () HTML element with text and an optional hyperlink
Create an anchor () HTML element with text and an optional hyperlink
function createAnchor(text, href) {
    let anchor = document.createElement("a");
    anchor.appendChild(document.createTextNode(text));
    if (href) {
        anchor.setAttribute("href", href);
    }
    return anchor;
}
function createAnchor ( text , href ) { let anchor = document . createElement ( "a" ) ; anchor . appendChild ( document . createTextNode ( text ) ) ; if ( href ) { anchor . setAttribute ( "href" , href ) ; } return anchor ; }
Create an anchor (<a>) HTML element with text and an optional hyperlink
Create an anchor ( <a > ) HTML element with text and an optional hyperlink