Show popup in access denied page
Popup module allow you to display the access denied page in popup box.


  The popup suite allows builders to popup tooltip-like text, nodes,
  blocks, menus, forms, views and php-generated content.


or

Better Messages intends to let you control where and how you want to see your Drupal messages! Combine different animations and override 


  Enable or disable popup messages at specific pages.