Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/base/jquery-ui.css" rel="stylesheet" type="text/css" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.min.js"></script>
<script src="http://jashkenas.github.com/coffee-script/extras/coffee-script.js"></script>
<meta charset=utf-8 />
<title>Welcome to JS Bin</title>
<meta name="viewport" content="width=device-width">
<link href='http://fonts.googleapis.com/css?family=Doppio+One' rel='stylesheet' type='text/css'>
</head>
  
<body>
  
  <script type="text/javascript">
    function showDialog()
    {
      $('.wrapper').append("<div id='AlertMessageWrapper'></div>");
            $('#AlertMessageWrapper').append("<div id='MessageContent'></div>");
      $('#AlertMessageWrapper').dialog({
        modal: true,
        resizable: false,
        draggable: false,
        width: '320px',
        height: 'auto',
        position: 'center',
        minHeight: "45px",
        title: "title",
        buttons: {
          Okay: {
            text: "ok",
            id: "DialogOk",
            click: function () {
              $(this).dialog("close");
            }
          }
        },
        close: function () {
          $(this).dialog("destroy");
          $(this).remove();
        },
        open: function () {
        }
      });
    }
  </script>
  
  <div class="wrapper">
    
    <input type="button" value="click" onclick="showDialog()"/>
    
  </div>
  
</body>
</html>
Output 300px

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

Dismiss x
public
Bin info
anonymouspro
0viewers