kytschBASIC

Put down that phone!
Please view me on real computer.

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
_selfOpen in the current browsing context. (Default)
_blankOpens a new tab, but users can configure browsers to open a new window instead
_parentThe parent browsing context of the current one. If no parent, behaves as _self.
_topThe topmost browsing context (the "highest" context that's an ancestor of the current one). If no ancestors, behaves as _self.