Good all the time of the day gentlemen

// внутри боди прописываю скрипт, т.к. в боди прописывать не вариант в моем случае <script type="text/javascript"> window.onload = print; </script> 

Actually, I use this code, which allows me to see the window for printing when the page loads. And as is usually the case under IE9 does not work. Can you tell me why?

ps the same decision was taken from the hashcode in the answers (google)

    1 answer 1

     window.onload = function() { print(''); void(0); } 


    • Yes. it is the same. now armed with this. thanks - sergey
    • can and without void - lampa