Skip to content

Commit

Permalink
add innerHTML example
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed May 27, 2024
1 parent 594cfdd commit d01a7ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/lips/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ Here is example how to add button to the page and add onclick handler using brow

```scheme
(let ((button (document.createElement "button")))
(set! button.innerText "click me!")
(set! button.innerHTML "click <strong>me</strong>!")
(set! button.onclick (lambda () (alert "Hello, LIPS Scheme!")))
(let ((style button.style))
(set! style.position "absolute")
Expand Down

0 comments on commit d01a7ef

Please sign in to comment.