oyazhuryachna

jquery_direct_printing

Jun 12th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.55 KB | None | 0 0
  1.         <script type="text/javascript" language="javascript">  
  2.          
  3.         $(document).ready(function(){          
  4.            
  5.             function disableF5(e) { if ((e.which || e.keyCode) == 116 || (e.which || e.keyCode) == 82) e.preventDefault(); };
  6.  
  7.             $(document).on("keydown", disableF5);
  8.             $("#info").load('info.php');
  9.             $("#tombol").click(function(){
  10.                    
  11.                
  12.                     $.post("counter.php", function(data, status){
  13.                         $("#testmodal").modal('show');
  14.                         $("#info").load('info.php');
  15.                         $("#print").load('winprint.php');
  16.                         });
  17.                     });
  18.         });                  
  19.         </script>
Advertisement
Add Comment
Please, Sign In to add comment