Can the URL and page No. and Date string be removed from the web page we printed?

     When a user print a web page, there is always a URL,a page No. in style of 1 of 2, a date string and sometimes a web page title printed. Usually we donnot need these information printed out, so is there any way to kill these information through program language? But sadly after you tried out all the possibly ways to resolve these irritating problem, you finally reach the dead corner. For this is impossible throuhg CSS, javascript, html, or php or any other server side script language or even those language combination. Because the page printed by the web broswer is usually automatically added these information, and this is broswer properties controlled by the user, if we can change the user's broswer properties  we made a ActiveX or computer virus in the end. The CSS, Html, and Javascript is used to reder the visible page for user, not to fully control the user broswer. The broswer takes a static page and print the view it received, sometimes these views are not printed as they acted on the web page.
     So, doing this sort of thing automatically is just annoying, and you won't find a decent way to do it anyway.
     There is still three ways to do finish this job, though not decently:
1. Set user borswer property:
    leave the header and footer blank in broswer, usually in File>Print Setup;
2. Using ActiveX:
    This is usually annoying, for both user and web developer, not recommanded;
3. Convert the page into PDF and suggest the user to print the PDF file.
    Hope there will finally be a decent way to solve this problem through programming language.

posted @ 2011-09-13 17:50  rereadyou  阅读(186)  评论(0编辑  收藏  举报