I coppied that source code and checked it as test.php, its not showing that message into dilog box it just shownig me

This is the default dialog which is useful for displaying information. The dialog window can be moved, resized and closed with the 'x' icon.
on the page only. dont know why?? Is that code working on your machine?