Merge pull request #1419 from ikeq/patch-1

Remove unnecessary code syntax inside buttons
This commit is contained in:
Ilya Kantor 2019-10-07 04:45:00 +03:00 committed by GitHub
commit beb9de06ad
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.
```