Can I hide image and text by JavaScript?

Can I hide img and H1 by JavaScript and show 'em by onClick at Button , or I just allowed to hide one thing.

4th Oct 2017, 10:39 AM
Karim Ashraf
Karim Ashraf - avatar
1 Answer
+ 6
Yes it's possible by setting the DOM's style.display to "none".
4th Oct 2017, 10:56 AM
Zephyr Koo
Zephyr Koo - avatar