Disabled right click on word document open using fancy box

Hi Pullo,

It is possible to add following style and body html in colorbox popup window.

<style>
  @media print {
  html, body {
    display: none;  /* hide whole page */
  }
}
  @media print {
  body {
    display: none;
  }
  @media print {
   BODY { display: none !important;}
}
</style>

<body onBeforePrint="document.body.style.display = 'none';" onAfterPrint="document.body.style.display = '';">

-Thanks

If I understand you correctly, it is just a question of downloading this:

<link rel="stylesheet" href="http://www.jacklmoore.com/colorbox/example1/colorbox.css" />

and referencing it accordingly:

<link rel="stylesheet" href="path/to/colorbox.css" />

Then you can alter it in any way you wish.

Oh Sorry Pullo.

I have added @media print related css in colorbox.css file and it work.

I got the success in not allowing user to print document shown using colorbox popup.

Many thanks for support.

-Thanks