LINK
URL, LABEL, CLASS, TARGET, ID
Generating a link to another page or resource.
Example
REM Goto internal link.
LINK "/about"
About
LINK CLOSE
REM Open the link in a new tab/window
LINK "https://github.com/kytschi/kytschBASIC",,,"_blank"
Download
LINK CLOSE
REM Read the menu from the database, loop through and build the links.
DATA, menu&
OPEN "kytschBASIC"
READ "menu"
SELECT "*"
WHERE "status='active' AND deleted_at IS NULL"
SORT "sort"
END DATA
FOR item& IN menu&
LINK item&["path"],,"nav-link"
PRINT item&["name"]
LINK CLOSE
END FOR
Source
<a href="/about">About</a>
<a href="/https://github.com/kytschi/kytschBASIC" _target="blank">About</a>
<a href="/home">Home</a>
<a href="/about">About</a>
<a href="/installation">Installation</a>
Target
Type | Description |
---|---|
_self | Open in the current browsing context. (Default) |
_blank | Opens a new tab, but users can configure browsers to open a new window instead |
_parent | The parent browsing context of the current one. If no parent, behaves as _self. |
_top | The topmost browsing context (the "highest" context that's an ancestor of the current one). If no ancestors, behaves as _self. |