Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<html>
<head>
  <script src="//code.jquery.com/jquery-1.10.2.js"></script>
  <script src="//code.jquery.com/ui/1.11.0/jquery-ui.js"></script>
<style>
div.back {  
float: left;
background-color: grey;
width:100px;
height:100px;
margin:10px;
padding:10px;
}
.window {
display: none;
position: fixed;
top: 150px;
left: 150px;
width:150px;
height:100px; 
background-color:blue;
}
</style>
<script>
$(document).ready(function(){
  $(".back").click(function(){       
        $(".window").css("display","block");     
  });
  $(".btn_validate").click(function(e){        
    e.stopPropagation();
        $(".window").css("display","none");              
  });
});
 </script>
 </head>
<body>
<div class="back">
    Some text
    <div id="draggable" class="window">
        <input type="button" value="CLOSE" class="btn_validate"/>
    </div>
</div>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
tjcrowderpro
0viewers