Merge pull request #1419 from ikeq/patch-1
Remove unnecessary code syntax inside buttons
This commit is contained in:
commit
beb9de06ad
1 changed files with 2 additions and 2 deletions
|
@ -132,9 +132,9 @@ To make the document unscrollable, it's enough to set `document.body.style.overf
|
||||||
```online
|
```online
|
||||||
Try it:
|
Try it:
|
||||||
|
|
||||||
<button onclick="document.body.style.overflow = 'hidden'">`document.body.style.overflow = 'hidden'`</button>
|
<button onclick="document.body.style.overflow = 'hidden'">document.body.style.overflow = 'hidden'</button>
|
||||||
|
|
||||||
<button onclick="document.body.style.overflow = ''">`document.body.style.overflow = ''`</button>
|
<button onclick="document.body.style.overflow = ''">document.body.style.overflow = ''</button>
|
||||||
|
|
||||||
The first button freezes the scroll, the second one resumes it.
|
The first button freezes the scroll, the second one resumes it.
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue