---
name: "HTMLDocument.addDocumentLink"
section: "3kaya"
platform: "linux"
package: "kaya"
version: "0.4.4-6.2"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/HTMLDocument.addDocumentLink"
---

# HTMLDocument.addDocumentLink(3kaya)

Adds a document-level link

## NAME

HTMLDocument::addDocumentLink - Adds a document-level link

## SYNOPSIS

**Void addDocumentLink(** *HTMLDocument doc, Relationship relate, String uri, String title=createString(0), String ctype=createString(0)* **)**

## ARGUMENTS

**doc** The HTML document

**rel** The relationship this link describes

**uri** The resource linked to.

**type** The content-type of the linked document (optional)

## DESCRIPTION

Adds a document-level link to another resource.

-

   addDocumentLink(doc,Rel("next"),\
                    webappName()+"slide="+(slideno+1));\
    addDocumentLink(doc,Rev("made"),"author@example.invalid");

## AUTHORS

Kaya standard library by Edwin Brady, Chris Morris and others (kaya@kayalang.org). For further information see http://kayalang.org/

## LICENSE

The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation.

## RELATED

The **HTMLDocument.Relationship (3kaya)** documentation explains the semantics of forward and reverse document links.
