<html>
<head>
<link rel="stylesheet" href="jqueryui/jquery-ui.min.css">
<script src="jqueryui/external/jquery/jquery.js"></script>
<script src="jqueryui/jquery-ui.min.js"></script>
<style>
</style>
<script type="text/javascript">
$(document).ready(function(){
$('#click').click(function(){
$('#dialog').attr('title','saved').text('this is the dialog box!').dialog({buttons:{
'OK':function(){
$(this).dialog('close');
}
}, closeOnEscape: true, draggable:false, resizable: false, show:'fade', modal:true, position:[100,100]});
});
});
</script>
</head>
<body>
<input type="button" value="click" id="click" />
<div id="dialog"></div>
</body>
</html>