开发者

Print Web Page without header and footer (by code) [duplicate]

开发者 https://www.devze.com 2023-04-01 14:32 出处:网络
This question already has answers here: Disabling browser print 开发者_开发技巧options (headers, footers, margins) from page?
This question already has answers here: Disabling browser print 开发者_开发技巧options (headers, footers, margins) from page? (9 answers) Closed 8 years ago.

I want to print a web page from IE without the header and footer that IE generates by default (in the footer there is the URL). Important this should be done by JavaScript or VBScript code and NOT the print settings for your web browser thank you in advance, best regards.


If you're talking about the header and footer generated by the browser (i.e. page numbers, URL, etc.), then you cannot do it. These elements are generated outside the scope of the web page - and you have no control over them. They are part of user's configuration of their system and can only be manipulated by the user.

0

精彩评论

暂无评论...
验证码 换一张
取 消