Skip to content

Commit 5c515bb

Browse files
authored
Remove unnecessary code syntax inside buttons
1 parent aa0c451 commit 5c515bb

File tree

1 file changed

+2
-2
lines changed
  • 2-ui/1-document/10-size-and-scroll-window

1 file changed

+2
-2
lines changed

2-ui/1-document/10-size-and-scroll-window/article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,9 @@ To make the document unscrollable, it's enough to set `document.body.style.overf
132132
```online
133133
Try it:
134134
135-
<button onclick="document.body.style.overflow = 'hidden'">`document.body.style.overflow = 'hidden'`</button>
135+
<button onclick="document.body.style.overflow = 'hidden'">document.body.style.overflow = 'hidden'</button>
136136
137-
<button onclick="document.body.style.overflow = ''">`document.body.style.overflow = ''`</button>
137+
<button onclick="document.body.style.overflow = ''">document.body.style.overflow = ''</button>
138138
139139
The first button freezes the scroll, the second one resumes it.
140140
```

0 commit comments

Comments
 (0)