JavaScript link: Difference between revisions

From Our World of Text Wiki
Jump to navigation Jump to search
m (Added page to Documentation category.)
mNo edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{Stub}}
A '''JavaScript link''', or '''script''', is a link that executes JS on click (or 3, since 2 more prompts with the code appear to make sure if you ''really'' want to click it). On the Center Console, a collection of theme and other scripts appear on the right.
A '''JavaScript link''', or '''script''', is a link that executes JS on click (or 3, since 2 more prompts with the code appear to make sure if you ''really'' want to click it). On the Center Console, a collection of theme and other scripts appear on the right.


To create a JS link, click Menu > Create link to URL, type <code>javascript:</code> ,  put your code, click Ok and place the link somewhere on canvas.
To create a JS link, click Menu > Create link to URL, type <code>javascript:</code> ,  put your code, click Ok and place the link somewhere on canvas. The downside to it is that the script can be one line only
[[Category:Documentation]]
[[Category:Documentation]]

Latest revision as of 10:47, 7 November 2023

A JavaScript link, or script, is a link that executes JS on click (or 3, since 2 more prompts with the code appear to make sure if you really want to click it). On the Center Console, a collection of theme and other scripts appear on the right.

To create a JS link, click Menu > Create link to URL, type javascript: , put your code, click Ok and place the link somewhere on canvas. The downside to it is that the script can be one line only