Line 32: | Line 32: | ||
<body> | <body> | ||
+ | <button onclick="myFunction()">Try it</button> | ||
April 2016 | April 2016 | ||
<p> | <p> | ||
Line 55: | Line 56: | ||
<head> | <head> | ||
− | + | ||
<script> | <script> | ||
− | + | function myFunction() { | |
− | + | var x = document.getElementById('myDIV'); | |
− | + | if (x.style.display === 'none') { | |
− | } | + | x.style.display = 'block'; |
− | } | + | } else { |
+ | x.style.display = 'none'; | ||
+ | } | ||
+ | } | ||
</script> | </script> | ||
+ | |||
+ | |||
</head> | </head> | ||
</html> | </html> |
Revision as of 13:24, 10 August 2017