take screenshot from webpage using javascript [duplicate]





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







-1
















This question already has an answer here:




  • Using HTML5/Canvas/JavaScript to take in-browser screenshots

    3 answers



  • Render HTML to an image

    15 answers




I want to take screenshot from webpage using JavaScript and include theme the canvas tag.
Previously I tried html2canvas plugin but its not powerful and I want to do this by my self .
How I can to this ?
Thanks










share|improve this question













marked as duplicate by quirimmo, Shree, Vega, Alexei Levenkov, Alexander Jan 3 at 6:21


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

























    -1
















    This question already has an answer here:




    • Using HTML5/Canvas/JavaScript to take in-browser screenshots

      3 answers



    • Render HTML to an image

      15 answers




    I want to take screenshot from webpage using JavaScript and include theme the canvas tag.
    Previously I tried html2canvas plugin but its not powerful and I want to do this by my self .
    How I can to this ?
    Thanks










    share|improve this question













    marked as duplicate by quirimmo, Shree, Vega, Alexei Levenkov, Alexander Jan 3 at 6:21


    This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.





















      -1












      -1








      -1









      This question already has an answer here:




      • Using HTML5/Canvas/JavaScript to take in-browser screenshots

        3 answers



      • Render HTML to an image

        15 answers




      I want to take screenshot from webpage using JavaScript and include theme the canvas tag.
      Previously I tried html2canvas plugin but its not powerful and I want to do this by my self .
      How I can to this ?
      Thanks










      share|improve this question















      This question already has an answer here:




      • Using HTML5/Canvas/JavaScript to take in-browser screenshots

        3 answers



      • Render HTML to an image

        15 answers




      I want to take screenshot from webpage using JavaScript and include theme the canvas tag.
      Previously I tried html2canvas plugin but its not powerful and I want to do this by my self .
      How I can to this ?
      Thanks





      This question already has an answer here:




      • Using HTML5/Canvas/JavaScript to take in-browser screenshots

        3 answers



      • Render HTML to an image

        15 answers








      javascript jquery html canvas webpage-screenshot






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 3 at 6:14









      Mohammad RNMohammad RN

      617




      617




      marked as duplicate by quirimmo, Shree, Vega, Alexei Levenkov, Alexander Jan 3 at 6:21


      This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.









      marked as duplicate by quirimmo, Shree, Vega, Alexei Levenkov, Alexander Jan 3 at 6:21


      This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


























          1 Answer
          1






          active

          oldest

          votes


















          0














          The library you can use https://html2canvas.hertzen.com/documentation



          Call this JavaScript File



          <script src="https://html2canvas.hertzen.com/dist/html2canvas.min.js"></script>


          HTML



          <div id="capture" style="padding: 10px; background: #f5da55">
          <h4 style="color: #000; ">Hello world!</h4>
          </div>


          JavaScript



          html2canvas(document.querySelector("#capture")).then(canvas => {
          document.body.appendChild(canvas)
          });





          share|improve this answer






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            The library you can use https://html2canvas.hertzen.com/documentation



            Call this JavaScript File



            <script src="https://html2canvas.hertzen.com/dist/html2canvas.min.js"></script>


            HTML



            <div id="capture" style="padding: 10px; background: #f5da55">
            <h4 style="color: #000; ">Hello world!</h4>
            </div>


            JavaScript



            html2canvas(document.querySelector("#capture")).then(canvas => {
            document.body.appendChild(canvas)
            });





            share|improve this answer




























              0














              The library you can use https://html2canvas.hertzen.com/documentation



              Call this JavaScript File



              <script src="https://html2canvas.hertzen.com/dist/html2canvas.min.js"></script>


              HTML



              <div id="capture" style="padding: 10px; background: #f5da55">
              <h4 style="color: #000; ">Hello world!</h4>
              </div>


              JavaScript



              html2canvas(document.querySelector("#capture")).then(canvas => {
              document.body.appendChild(canvas)
              });





              share|improve this answer


























                0












                0








                0







                The library you can use https://html2canvas.hertzen.com/documentation



                Call this JavaScript File



                <script src="https://html2canvas.hertzen.com/dist/html2canvas.min.js"></script>


                HTML



                <div id="capture" style="padding: 10px; background: #f5da55">
                <h4 style="color: #000; ">Hello world!</h4>
                </div>


                JavaScript



                html2canvas(document.querySelector("#capture")).then(canvas => {
                document.body.appendChild(canvas)
                });





                share|improve this answer













                The library you can use https://html2canvas.hertzen.com/documentation



                Call this JavaScript File



                <script src="https://html2canvas.hertzen.com/dist/html2canvas.min.js"></script>


                HTML



                <div id="capture" style="padding: 10px; background: #f5da55">
                <h4 style="color: #000; ">Hello world!</h4>
                </div>


                JavaScript



                html2canvas(document.querySelector("#capture")).then(canvas => {
                document.body.appendChild(canvas)
                });






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jan 3 at 6:22









                GooglianGooglian

                1,6251719




                1,6251719

















                    Popular posts from this blog

                    MongoDB - Not Authorized To Execute Command

                    How to fix TextFormField cause rebuild widget in Flutter

                    Npm cannot find a required file even through it is in the searched directory