I have a page with a modal. One option in this modal is to print the page using window.print(). 
This prints the modal and not the page.
How can I print just the page and not the modal?
I have a page with a modal. One option in this modal is to print the page using window.print(). 
This prints the modal and not the page.
How can I print just the page and not the modal?
 
    
    You want to set up a print stylesheet. If your modal content has an ID of #modal, then this will hide it when printed:
@media print {
    #modal{
        display: none;
    }
}
