I would like to know if it is possible to automatically disable the headers and footers generated by google chrome or firefox.
Date, page title, URL address and number of pages.
There is a manual way, giving other options and removing the check from that option.
but I would like to know if it is possible with javascript or other elements, but that the person when pressing print on my web page can have their file without those additions
usage: window.print();
The CSS standard enables advanced formatting. There is the @page directive in CSS that allows you to format media pages (like paper). Here is some interesting documentation about it http://www.w3.org/TR/1998/REC-CSS2-19980512/page.html .
it would be enough to include this in your CSS to remove the header and footer.