1 Reply Latest reply on Jun 5, 2009 8:14 PM by Francisco Jose Peredo Noguez

    print Preview

    Sudha Perumal Newbie
      How to write the code to display Browser's print Preview.
      I used the following code.Its working for Html code..But not working for Xhtml.

      <script LANGUAGE="JavaScript">
      function displayHTML(printContent) {
      var inf = printContent;
      win = window.open("print.htm", 'popup', 'toolbar = no, status = no');
      <div id="printarea">Print this stuff.</div>
      <a href="javascript:void(0);" onclick="displayHTML(printarea.innerHTML)">Print Preview</a>