print button action js

by lemon kazi

HTML

<script> 
function swapCss() {
            document.getElementById('printCss').value ='print1.css';
            window.print();
        }
        function swapCss2() {
                    document.getElementById('printCss').value = 'print2.css';
    window.print();
        }
   </script>
<input class="printbutton" type="button" onclick="swapCss();" value="Print Customer Copy"/>
<input  class="printbutton"  type="button" onclick="swapCss2();" value="Print Seller Copy"/>
<input id="printCss" type="button" onclick="swapCss2();" value="value"/>