+ 3
How do I display a picture when I press a button?
6 Answers
+ 10
JS can do.
Set display propety of image to none in css.
And then change it to block using JS.
Read comments in code
https://code.sololearn.com/WBTByw2yEDQz/?ref=app
+ 5
takeru If you don't want JS šæ
Then you'll have to use css hover selector. But then you can't use button ,just hover
https://code.sololearn.com/WBi3sjk59mQl/?ref=app
+ 1
Thank you!
But is there a way not to use js?
+ 1
I understand what you say.
I think I need to learn more about JS.Thank you.
0
takeru There isn't. All buttons require 'functions'. Otherwise, they wouldn't do anything. CSS ir HTML don't do such things, they are merely the 'decoration' tools of your page. So JS only for any buttons
0
can 'ontarget' be the same as' onclick'
?