I have a page with a link, that I want that every time a user clicks on it – it opens a div with content on it - and clicking anywhere will close it.
How do I do this using CSS?
Or should I do this using JavaScript? How?
Is it more recommended to do this using JS?
What loads faster on a webpage?
Fiddle to start with: http://jsfiddle.net/dnaLqa0g/1/
<a href="">A LINK</a>
<div id="popush">
this is some text.
</div>
#popush{
/*display:none; */
border: 1px solid black;
margin:0 auto;
width: 200px;
height:100px;
}