Skip to content

Instantly share code, notes, and snippets.

@ChrisMoney
Created February 15, 2012 15:09
Show Gist options
  • Save ChrisMoney/2366523875a248005f3e to your computer and use it in GitHub Desktop.
Save ChrisMoney/2366523875a248005f3e to your computer and use it in GitHub Desktop.
Javascript --No window pop
CSS Code
#popUpDiv {
position:absolute;
background-color: white
width:300px;
height:300px;
}
Javascript Code
// Add Javascript
HTML Code
<div id=”blanket” style=”display:none;”></div>
<div id=”popUpDiv” style=”display:none;”>
<a href=”#” onclick=”popup(‘popUpDiv’)”>Click Me To Close</a>
</div>
<a href=”#” onclick=”popup(‘popUpDiv’)”>Click Here To Open The Pop Up</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment