Friday 11 September 2015

window.print() with no page url

When we are use window.print() in web application the url of the site are appeared in the document.
This can be prevent by css.

  <style>
@media print
  {
  // .withoutprint{
  //      display: none;
 //   }
 //   .printonly{
 //       display:block;
 //   }

    @page { margin: 0; }
     body { margin: 0.0cm; }
  }
  </style>