Demo of showing Dialog box at right top

This is at top right corner



HTML

<button id="b1">Open Dialog Box</button>
<div id="my_dialog" title="plus2net  dialog">
  <p>This is at top right corner</p>
</div>

JQuery

<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>