watch 01:25
Jurassic World: Dominion Dominates Fandom Wikis - The Loop
Do you like this video?
Play Sound
The selection is a reference to the currently selected text.
Syntax
the selection
selection()
Example
put empty into the selection -- deletes the selection
Use the selection keyword to get the currently selected text or to replace the selection.
Certain commands--in particular, the cut and copy commands--operate on the selected text.
Note: The selection keyword is implemented internally as a function and appears in the functionNames. However, unlike most functions, the selection > lets you put things into it, and behaves like a container rather than a function(control structure).
Use the selection keyword to get the currently selected text or to replace the selection.