How to make a button which when clicked, displays a pop up? Please give me codes for it. | SoloLearn: Learn to code for FREE!

0

How to make a button which when clicked, displays a pop up? Please give me codes for it.

using HTML and CSS

9/10/2017 4:59:49 AM

Jitesh Gupta

9 Answers

New Answer

+12

@Jits here you go https://code.sololearn.com/W152eSgelFF5/?ref=app

+11

https://code.sololearn.com/W8T7TB0dC69w/?ref=app

+10

The function of JavaScript here is only to handle the toggle event, nothing else.

+6

https://code.sololearn.com/W0O6OuThA3dg/?ref=app

+4

Event trigger like button clicked have to be in JavaScript. HTML and CSS can't has logical function execution.

+1

it can't be done via html and css?

0

thank you Calvin, but I need to know some thing that although I don't have much knowledge about java script, can you tell what is the use of java script here?

0

thank you #00FF00, but pop up can't be done by only using html and css

0

thank you , so useful