Is there a way to activate the printing header and footer using JS or CSS?

Show headers and footers option

I’ve heard about @page in CSS, that can change margin, orientation, page break, but my question is: Is there a way to activate the “Headers and footers” option, for that when I open the printing window it already comes checked

I tried using the @page on css, but I don’t know what attribute to use in this specific case