This is at top right corner
<button id="b1">Open Dialog Box</button>
<div id="my_dialog" title="plus2net dialog">
<p>This is at top right corner</p>
</div>
<script>
$(document).ready(function() {
$(function() {
$( "#my_dialog" ).dialog({
autoOpen: false,
position: { my: "right top", at: "right top", of: window }
});
});
$("#b1").click(function(){
$( "#my_dialog" ).dialog( "open" );
})
})
</script>