How can I insert a Print button that prints a form in a webpage

后端 未结 3 1462
耶瑟儿~
耶瑟儿~ 2020-12-13 07:20

So, lets say I got a simple form inside a page like this:

STUFF

3条回答
  •  天涯浪人
    2020-12-13 07:45

    Print whole page

    Try adding a button that calls window.print()

    
    

    Print a specific portion/container in a page

    
    

    then in HTML file add this script code

    
    
                                     
                  
提交回复
热议问题