Remove unnecessary code syntax inside buttons

This commit is contained in:
Elmore Cheng 2019-10-06 17:06:03 +08:00 committed by GitHub
parent aa0c451dd5
commit 5c515bbfad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -132,9 +132,9 @@ To make the document unscrollable, it's enough to set `document.body.style.overf
```online
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.
```