Skip to content

Commit 68a0f5f

Browse files
committed
add documentation on the cookies symbol
1 parent 728c58a commit 68a0f5f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

www/docs.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,8 @@ Here is a table of available symbols:
438438
the detail of the event that triggered the current handler, if any
439439
`sender`
440440
the element that sent the current event, if any
441+
`cookies`
442+
an [api](/expressions/cookies) to access cookies
441443
{% endsyntaxes %}
442444

443445
Note that the `target` is the element that the event *originally* occurred on.
@@ -446,6 +448,8 @@ Event handlers, discussed [below](#on), may be placed on parent elements to take
446448
of [event bubbling](https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Building_blocks/Events#event_bubbling_and_capture)
447449
which can reduce redundancy in code.
448450

451+
Note that JavaScript global symbols such as `window` & `localStorage` are also available.
452+
449453
### Logging To The Console
450454

451455
If you wish to print something to the `console` you can use the [`log` command](/commands/log):

0 commit comments

Comments
 (0)